mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-28 08:06:23 +00:00
fix(Core/Creature): Prevent combat movement disabled creatures from r… (#18428)
* fix(Core/Creature): Prevent combat movement disabled creatures from repositioning if target moves within model boundary * fixbuild * Apply suggestions from code review
This commit is contained in:
@@ -123,7 +123,7 @@ struct boss_jeklik : public BossAI
|
||||
|
||||
me->SetDisableGravity(false);
|
||||
me->SetReactState(REACT_PASSIVE);
|
||||
BossAI::SetCombatMovement(false);
|
||||
BossAI::me->SetCombatMovement(false);
|
||||
batRidersCount = 0;
|
||||
|
||||
DoCastSelf(SPELL_GREEN_CHANNELING, true);
|
||||
@@ -148,7 +148,7 @@ struct boss_jeklik : public BossAI
|
||||
BossAI::PathEndReached(pathId);
|
||||
|
||||
me->SetDisableGravity(false);
|
||||
SetCombatMovement(true);
|
||||
me->SetCombatMovement(true);
|
||||
me->SetReactState(REACT_AGGRESSIVE);
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user