mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 19:35:42 +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:
@@ -606,14 +606,14 @@ struct boss_jormungarAI : public ScriptedAI
|
||||
if( bIsStationary )
|
||||
{
|
||||
me->SetNativeDisplayId(_MODEL_MOBILE);
|
||||
SetCombatMovement(true);
|
||||
me->SetCombatMovement(true);
|
||||
if( Unit* victim = me->GetVictim() )
|
||||
me->GetMotionMaster()->MoveChase(victim);
|
||||
}
|
||||
else
|
||||
{
|
||||
me->SetNativeDisplayId(_MODEL_STATIONARY);
|
||||
SetCombatMovement(false);
|
||||
me->SetCombatMovement(false);
|
||||
}
|
||||
me->RemoveAurasDueToSpell(SPELL_SUBMERGE_0);
|
||||
me->CastSpell(me, SPELL_EMERGE_0, false);
|
||||
@@ -692,7 +692,7 @@ public:
|
||||
_MODEL_STATIONARY = MODEL_ACIDMAW_STATIONARY;
|
||||
_MODEL_MOBILE = MODEL_ACIDMAW_MOBILE;
|
||||
_TYPE_OTHER = TYPE_DREADSCALE;
|
||||
SetCombatMovement(false);
|
||||
me->SetCombatMovement(false);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user