From 8b939700e78aed23788b5a66738a58adb7e20d21 Mon Sep 17 00:00:00 2001 From: Vincent-Michael Date: Sun, 26 Aug 2012 17:31:37 +0200 Subject: DB/Misc: * Fix phaseMask for Mature Lasher * Implement Essence of Wintergrasp only for wintergrasp zone --- sql/updates/world/2012_08_26_01_world_creature.sql | 1 + sql/updates/world/2012_08_26_02_world_spell_area.sql | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 sql/updates/world/2012_08_26_01_world_creature.sql create mode 100644 sql/updates/world/2012_08_26_02_world_spell_area.sql (limited to 'sql') diff --git a/sql/updates/world/2012_08_26_01_world_creature.sql b/sql/updates/world/2012_08_26_01_world_creature.sql new file mode 100644 index 00000000000..af14886850d --- /dev/null +++ b/sql/updates/world/2012_08_26_01_world_creature.sql @@ -0,0 +1 @@ +UPDATE `creature` SET `phaseMask`=256 WHERE `id`=34300; diff --git a/sql/updates/world/2012_08_26_02_world_spell_area.sql b/sql/updates/world/2012_08_26_02_world_spell_area.sql new file mode 100644 index 00000000000..c4eae68e3c4 --- /dev/null +++ b/sql/updates/world/2012_08_26_02_world_spell_area.sql @@ -0,0 +1,3 @@ +DELETE FROM `spell_area` WHERE spell=58045; +INSERT INTO `spell_area` (`spell`,`area`,`quest_start`,`quest_start_active`,`quest_end`,`aura_spell`,`racemask`,`gender`,`autocast`) VALUES +(58045,4197,0,0,0,0,0,2,1); -- cgit v1.2.3 From fcd48335e8efc194d8c731eaf7fe39d7166dce52 Mon Sep 17 00:00:00 2001 From: Vincent-Michael Date: Sun, 26 Aug 2012 19:38:05 +0200 Subject: Core/Spells: Implement Battleground - Dampening for wintergrasp --- sql/updates/world/2012_08_26_03_world_spell_area.sql | 3 +++ src/server/game/Spells/SpellMgr.cpp | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 sql/updates/world/2012_08_26_03_world_spell_area.sql (limited to 'sql') diff --git a/sql/updates/world/2012_08_26_03_world_spell_area.sql b/sql/updates/world/2012_08_26_03_world_spell_area.sql new file mode 100644 index 00000000000..65072d2b4a7 --- /dev/null +++ b/sql/updates/world/2012_08_26_03_world_spell_area.sql @@ -0,0 +1,3 @@ +DELETE FROM `spell_area` WHERE spell=74411 AND `area`=4197; +INSERT INTO `spell_area` (`spell`,`area`,`quest_start`,`quest_start_active`,`quest_end`,`aura_spell`,`racemask`,`gender`,`autocast`) VALUES +(74411,4197,0,0,0,0,0,2,1); diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index 2633fd8ea30..b580c5e2282 100755 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -1177,6 +1177,16 @@ bool SpellArea::IsFitToRequirements(Player const* player, uint32 newZone, uint32 return battlefieldWG->IsEnabled() && (player->GetTeamId() == battlefieldWG->GetDefenderTeam()) && !battlefieldWG->IsWarTime(); break; } + case 74411: // Battleground - Dampening + { + if (!player) + return false; + + if (Battlefield* bf = sBattlefieldMgr->GetBattlefieldToZoneId(player->GetZoneId())) + return bf->IsWarTime(); + break; + } + } return true; -- cgit v1.2.3