mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/Spells: Implement Battleground - Dampening for wintergrasp
This commit is contained in:
3
sql/updates/world/2012_08_26_03_world_spell_area.sql
Normal file
3
sql/updates/world/2012_08_26_03_world_spell_area.sql
Normal file
@@ -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);
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user