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
+10
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;