From 50c912dc0037821ff89fc19f8a84c3cca50035c6 Mon Sep 17 00:00:00 2001 From: KingPin Date: Mon, 26 Jan 2009 20:03:51 -0500 Subject: * Rest of the new can fly code removed. --HG-- branch : trunk --- src/game/Spell.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/game/Spell.cpp') diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index fb5662bfd7b..7963a9b0872 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -4172,9 +4172,11 @@ uint8 Spell::CanCast(bool strict) case SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED: case SPELL_AURA_FLY: { + // not allow cast fly spells at old maps by players (all spells is self target) if(m_caster->GetTypeId()==TYPEID_PLAYER) { - if(!((Player*)m_caster)->CanFlyInMap(GetVirtualMapForMapAndZone(m_caster->GetMapId(),m_caster->GetZoneId()))) + if( !((Player*)m_caster)->isGameMaster() && + GetVirtualMapForMapAndZone(m_caster->GetMapId(),m_caster->GetZoneId()) != 530) return SPELL_FAILED_NOT_HERE; } break; @@ -5425,4 +5427,4 @@ int32 Spell::CalculateDamageDone(Unit *unit, const uint32 effectMask, float *mul } return damageDone; -} \ No newline at end of file +} -- cgit v1.2.3