[10210] Do unmount at expire restricted flight zone debuf if still in restricted zone/etc.

This commit is contained in:
VladimirMangos 2010-07-17 21:40:04 +04:00
parent d6a3347245
commit 63ea8bbf4b
2 changed files with 12 additions and 5 deletions

View file

@ -2168,11 +2168,18 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
return;
}
case 58600: // Restricted Flight Area
{
AreaTableEntry const* area = GetAreaEntryByAreaID(target->GetAreaId());
// Dalaran restricted flight zone (recheck before apply unmount)
if (area && target->GetTargetGUID() == TYPEID_PLAYER && (area->flags & AREA_FLAG_CANNOT_FLY) &&
((Player*)target)->IsFreeFlying() && !((Player*)target)->isGameMaster())
{
// Remove Flight Auras
target->CastSpell(target, 58601, true);
// Parachute
target->CastSpell(target, 45472, true);
}
return;
}
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10209"
#define REVISION_NR "10210"
#endif // __REVISION_NR_H__