Core/Spells: Implement Battleground - Dampening for wintergrasp

This commit is contained in:
Vincent-Michael
2012-08-26 19:38:05 +02:00
parent 8b939700e7
commit fcd48335e8
2 changed files with 13 additions and 0 deletions

View 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);

View File

@@ -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;