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:
parent
b2e2cbfc13
commit
6df652a8dd
32 changed files with 71 additions and 74 deletions
|
|
@ -1532,7 +1532,7 @@ public:
|
|||
{
|
||||
npc_guardian_pavilionAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
SetCombatMovement(false);
|
||||
me->SetCombatMovement(false);
|
||||
}
|
||||
|
||||
void MoveInLineOfSight(Unit* who) override
|
||||
|
|
@ -1596,7 +1596,7 @@ public:
|
|||
{
|
||||
npc_tournament_training_dummyAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
SetCombatMovement(false);
|
||||
me->SetCombatMovement(false);
|
||||
me->ApplySpellImmune(0, IMMUNITY_EFFECT, SPELL_EFFECT_KNOCK_BACK, true);
|
||||
}
|
||||
|
||||
|
|
@ -1816,7 +1816,7 @@ public:
|
|||
PhaseCount = 0;
|
||||
Summons.DespawnAll();
|
||||
|
||||
SetCombatMovement(false);
|
||||
me->SetCombatMovement(false);
|
||||
}
|
||||
|
||||
EventMap events;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue