[7006] Implement area limitations for spell 51721 (and auto apply for this in area) and 54055.

This commit is contained in:
VladimirMangos 2009-01-02 19:19:02 +03:00
parent bd4fc1b0ae
commit 4dbb744af4
3 changed files with 25 additions and 10 deletions

View file

@ -2333,6 +2333,9 @@ uint8 GetSpellAllowedInLocationError(SpellEntry const *spellInfo,uint32 map_id,u
case 40216: // Dragonmaw Illusion
case 42016: // Dragonmaw Illusion
return area_id == 3759 || area_id == 3966 || area_id == 3939 ? 0 : SPELL_FAILED_INCORRECT_AREA;
case 51721: // Dominion Over Acherus
case 54055: // Dominion Over Acherus
return area_id == 4281 || area_id == 4342 ? 0 : SPELL_FAILED_INCORRECT_AREA;
}
return 0;