mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 04:37:06 +00:00
[10210] Do unmount at expire restricted flight zone debuf if still in restricted zone/etc.
This commit is contained in:
parent
d6a3347245
commit
63ea8bbf4b
2 changed files with 12 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10209"
|
||||
#define REVISION_NR "10210"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue