aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities/advstd.h
diff options
context:
space:
mode:
authorGiacomo Pozzoni <giacomopoz@gmail.com>2019-06-22 20:03:49 +0200
committerGitHub <noreply@github.com>2019-06-22 20:03:49 +0200
commitc234604e82f291752f9095babe60e1780fd07569 (patch)
tree9b05c5295f28afe4ccdd050acc633ef5d9edcf93 /src/common/Utilities/advstd.h
parent678e0e606aa38e18fd361c33bc91833fdae76735 (diff)
Core/AI: Fix Guardians not following the owner after finishing combat (#23466)
CreatureAI::UpdateVictim() was not triggering EnterEvadeMode() after the Creature ended combat because IsEngaged() would return false. These changes save the value of IsEngaged() to be used next tick to check if the Creature was in combat, is not anymore now and needs to evade (or select another enemy). EnterEvadeMode() sets the stored previous value to false to ensure the Creature will not try to evade while already evading.
Diffstat (limited to 'src/common/Utilities/advstd.h')
0 files changed, 0 insertions, 0 deletions