Skip to content

Commit

Permalink
[10210] Do unmount at expire restricted flight zone debuf if still in…
Browse files Browse the repository at this point in the history
… restricted zone/etc.
  • Loading branch information
VladimirMangos committed Jul 17, 2010
1 parent f18ddaf commit 42f7acb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions src/game/SpellAuras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2169,10 +2169,17 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
}
case 58600: // Restricted Flight Area
{
// Remove Flight Auras
target->CastSpell(target, 58601, true);
// Parachute
target->CastSpell(target, 45472, true);
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) &&

This comment has been minimized.

Copy link
@technoir42

technoir42 Jul 17, 2010

Contributor

^ typo

This comment has been minimized.

Copy link
@VladimirMangos

VladimirMangos Jul 17, 2010

How this work for me at test O.o thanks!

((Player*)target)->IsFreeFlying() && !((Player*)target)->isGameMaster())
{
// Remove Flight Auras
target->CastSpell(target, 58601, true);
// Parachute
target->CastSpell(target, 45472, true);

This comment has been minimized.

Copy link
@Timawyn

Timawyn Jul 17, 2010

It's a hack I think...

This comment has been minimized.

Copy link
@VladimirMangos

VladimirMangos Jul 17, 2010

I done this by description retail players: debuff not removed until expired independent from zone leave and etc, but no affect if not in restricted zone.

This comment has been minimized.

Copy link
@Timawyn

Timawyn Jul 17, 2010

Hum... You can add this:
target->RemoveSpellsCausingAura(SPELL_AURA_MOUNTED);
target->RemoveSpellsCausingAura(SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED);
It's not work?

This comment has been minimized.

Copy link
@VladimirMangos

VladimirMangos Jul 17, 2010

Why add aura remove if exist special spell for this... specially exist for remove mount/form in this dummy spell.

This comment has been minimized.

Copy link
@VladimirMangos

VladimirMangos Jul 17, 2010

understood, will fix with other small fixes, thank you :)

}
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10209"
#define REVISION_NR "10210"
#endif // __REVISION_NR_H__

0 comments on commit 42f7acb

Please sign in to comment.