From 54114999aebd884448fbaae0f1915d489683c2b8 Mon Sep 17 00:00:00 2001 From: GriffonHeart Date: Sun, 25 Jan 2009 10:43:43 +0300 Subject: [PATCH] [7172] Implement area requirements for spell 54119. Signed-off-by: VladimirMangos --- src/game/Player.cpp | 7 +++++++ src/game/SpellMgr.cpp | 2 ++ src/shared/revision_nr.h | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 98320918e..f2c0c4fd3 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -19012,6 +19012,13 @@ void Player::UpdateAreaDependentAuras( uint32 newArea ) if( !HasAura(51721,0) ) CastSpell(this,51721,true); break; + // Mist of the Kvaldir + case 4028: //Riplash Strand + case 4029: //Riplash Ruins + case 4106: //Garrosh's Landing + case 4031: //Pal'ea + CastSpell(this,54119,true); + break; } } diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 7414c20b8..4b316e5cb 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -2379,6 +2379,8 @@ uint8 GetSpellAllowedInLocationError(SpellEntry const *spellInfo,uint32 map_id,u case 51721: // Dominion Over Acherus case 54055: // Dominion Over Acherus return area_id == 4281 || area_id == 4342 ? 0 : SPELL_FAILED_INCORRECT_AREA; + case 54119: // Mist of the Kvaldir + return area_id == 4028 || area_id == 4029 || area_id == 4106 || area_id == 4031 ? 0 : SPELL_FAILED_INCORRECT_AREA; } return 0; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 46dc3ace2..82e51efbf 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 "7171" + #define REVISION_NR "7172" #endif // __REVISION_NR_H__ -- 2.11.4.GIT