Fixed old no-fly zone code to use area flags instead of hardcoded area ids (this fixes flying in Wintergrasp)

This does NOT implement no-fly zones!

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-06-16 19:36:50 +02:00
parent 560f3bb87b
commit 3be48fe4fc
3 changed files with 10 additions and 11 deletions
@@ -1811,13 +1811,6 @@ void AuraEffect::PeriodicDummyTick(Unit * target, Unit * caster) const
else
target->RemoveAurasDueToSpell(58670);
break;
case 58600: // No fly Zone - Dalaran
if (GetTickNumber() == 10)
{
target->RemoveAurasByType(SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED);
target->RemoveAurasByType(SPELL_AURA_FLY);
}
break;
case 62292: // Blaze (Pool of Tar)
// should we use custom damage?
target->CastSpell((Unit*)NULL, m_spellProto->EffectTriggerSpell[m_effIndex], true);