From 6146e19acb29fa95c415c10c2fb663f5e579471b Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Thu, 29 Apr 2010 15:25:28 +0400 Subject: [PATCH] [9805] Fixed lost flight mount/form for GM in old contentes. --- src/game/SpellMgr.cpp | 4 ++-- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 2985713de..d1dd4e86b 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -2964,8 +2964,8 @@ SpellCastResult SpellMgr::GetSpellAllowedInLocationError(SpellEntry const *spell return SPELL_FAILED_INCORRECT_AREA; } - // continent limitation (virtual continent) - if (spellInfo->AttributesEx4 & SPELL_ATTR_EX4_CAST_ONLY_IN_OUTLAND) + // continent limitation (virtual continent), ignore for GM + if ((spellInfo->AttributesEx4 & SPELL_ATTR_EX4_CAST_ONLY_IN_OUTLAND) && !(player && player->isGameMaster())) { uint32 v_map = GetVirtualMapForMapAndZone(map_id, zone_id); MapEntry const* mapEntry = sMapStore.LookupEntry(v_map); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 14ca3fb5e..d1f351a4f 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9804" + #define REVISION_NR "9805" #endif // __REVISION_NR_H__