Core/Spell: define channels without movement interrupt flags as allowed move

- Remove script hacks no longer needed
This commit is contained in:
ariel- authored and Aokromes committed 2017-04-25 13:30:58 +02:00
1 parent 2e27a1f64e
commit 8e16897073
8 files changed
+1 -12

No files matched your search

@@ -1123,10 +1123,7 @@ class npc_dark_nucleus : public CreatureScript
if (Unit* victim = me->GetVictim())
{
if (me->GetDistance(victim) < 15.0f && !victim->HasAura(SPELL_SHADOW_RESONANCE_RESIST, me->GetGUID()))
{
DoCast(victim, SPELL_SHADOW_RESONANCE_RESIST);
me->ClearUnitState(UNIT_STATE_CASTING);
}
else
MoveInLineOfSight(me->GetVictim());
}
@@ -1140,7 +1137,6 @@ class npc_dark_nucleus : public CreatureScript
}
DoCast(who, SPELL_SHADOW_RESONANCE_RESIST);
me->ClearUnitState(UNIT_STATE_CASTING);
}
void DamageTaken(Unit* attacker, uint32& /*damage*/) override
@@ -914,7 +914,6 @@ class spell_putricide_ooze_channel : public SpellScriptLoader
void StartAttack()
{
GetCaster()->ClearUnitState(UNIT_STATE_CASTING);
GetCaster()->DeleteThreatList();
GetCaster()->ToCreature()->AI()->AttackStart(GetHitUnit());
GetCaster()->AddThreat(GetHitUnit(), 500000000.0f); // value seen in sniff
@@ -720,7 +720,6 @@ class boss_the_lich_king : public CreatureScript
summon->CastSpell(summon, SPELL_ICE_SPHERE, false);
summon->CastSpell(summon, SPELL_ICE_BURST_TARGET_SEARCH, false);
summon->CastSpell(target, SPELL_ICE_PULSE, false);
summon->ClearUnitState(UNIT_STATE_CASTING);
summon->GetMotionMaster()->MoveFollow(target, 0.0f, 0.0f);
}
else
@@ -161,7 +161,6 @@ public:
break;
case EVENT_RESUME_PULSING_SHOCKWAVE:
DoCast(me, SPELL_PULSING_SHOCKWAVE_AURA, true);
me->ClearUnitState(UNIT_STATE_CASTING); // This flag breaks movement.
DoCast(me, SPELL_PULSING_SHOCKWAVE, true);
break;
case EVENT_INTRO_DIALOGUE:
@@ -225,8 +225,6 @@ class boss_kologarn : public CreatureScript
summon->CastSpell(summon, SPELL_FOCUSED_EYEBEAM_PERIODIC, true);
summon->CastSpell(summon, SPELL_FOCUSED_EYEBEAM_VISUAL, true);
summon->SetReactState(REACT_PASSIVE);
// One of the above spells is a channeled spell, we need to clear this unit state for MoveChase to work
summon->ClearUnitState(UNIT_STATE_CASTING);
// Victim gets 67351
if (eyebeamTarget)
@@ -1301,7 +1301,6 @@ class npc_mimiron_assault_bot : public CreatureScript
{
case EVENT_MAGNETIC_FIELD:
DoCastVictim(SPELL_MAGNETIC_FIELD);
me->ClearUnitState(UNIT_STATE_CASTING);
events.RescheduleEvent(EVENT_MAGNETIC_FIELD, 30000);
break;
default:
@@ -2321,7 +2321,6 @@ class spell_illidan_find_target : public SpellScriptLoader
if (Creature* caster = GetCaster()->ToCreature())
{
caster->CastSpell(target, SPELL_PARALYZE, true);
caster->ClearUnitState(UNIT_STATE_CASTING);
caster->AI()->SetGUID(target->GetGUID(), 0);
}
}