[8377] Resolve some spell_area problems in GM and non-GM mode. Author: VladimirMangos

* Make spell 40216 and 42016 casted/remove at aura 40214 apply/remove.
      And drop related spell_area possible existed data.
    * In general restore apply area limitations to spell casting in GM mode.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-17 16:34:02 -05:00
parent d118ef5d08
commit d205ff9e06
3 changed files with 9 additions and 5 deletions

View File

@@ -81,7 +81,9 @@ INSERT INTO `spell_linked_spell` (`spell_trigger`, `spell_effect`, `type`, `comm
( 34471, 24397, 2, 'The Beast Within'),
( 34471, 26592, 2, 'The Beast Within'),
(-59907, 7, 0, 'Lightwell Charges - Suicide'),
-- Quest
( 40214, 40216, 2, 'Dragonmaw Illusion'),
( 40214, 42016, 2, 'Dragonmaw Illusion'),
-- Creature
( 36574, 36650, 0, 'Apply Phase Slip Vulnerability'),
-- instance

View File

@@ -0,0 +1,6 @@
DELETE FROM `spell_area` where spell in (40216,42016);
DELETE FROM `spell_linked_spell` WHERE spell_trigger = 40214;
INSERT INTO `spell_linked_spell` (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES
( 40214, 40216, 2, 'Dragonmaw Illusion'),
( 40214, 42016, 2, 'Dragonmaw Illusion');

View File

@@ -2585,10 +2585,6 @@ void SpellMgr::LoadSpellAreas()
SpellCastResult SpellMgr::GetSpellAllowedInLocationError(SpellEntry const *spellInfo, uint32 map_id, uint32 zone_id, uint32 area_id, Player const* player)
{
// allow in GM-mode
if (player && player->isGameMaster())
return SPELL_CAST_OK;
// normal case
if (spellInfo->AreaGroupId > 0)
{