[Client] Make any ActorAI packet override an actor's desire to fight

This commit is contained in:
David Cernat 2018-07-10 11:33:07 +03:00
parent 79ee976c95
commit 2e31c212c0

View file

@ -214,6 +214,7 @@ void DedicatedActor::setEquipment()
void DedicatedActor::setAI()
{
MWMechanics::CreatureStats *ptrCreatureStats = &ptr.getClass().getCreatureStats(ptr);
ptrCreatureStats->setAiSetting(MWMechanics::CreatureStats::AI_Fight, 0);
if (aiAction == mwmp::BaseActorList::CANCEL)
{