Esempio n. 1
0
 bool OnCheck(Player* source, Unit* /*target*/)
 {
     Battleground* bg = source->GetBattleground();
     return bg && bg->GetBgTypeID() == BATTLEGROUND_AV && bg->ToBattlegroundAV()->IsAllTowersControlledAndCaptainAlive(source->GetTeamId());
 }
Esempio n. 2
0
 bool OnCheck(Player* source, Unit* /*target*/)
 {
     Battleground* bg = source->GetBattleground();
     return bg && bg->GetBgTypeID() == BATTLEGROUND_AV && bg->ToBattlegroundAV()->IsBothMinesControlledByTeam(source->GetTeamId());
 }