bool OnCheck(Player* source, Unit* /*target*/) { if (!source) return false; Battleground* battleground = source->GetBattleground(); return battleground && battleground->GetBgTypeID() == BATTLEGROUND_SA && battleground->ToBattlegroundSA()->notEvenAScratch(source->GetTeamId()); }
bool OnCheck(Player* source, Unit* /*target*/) { Battleground* bg = source->GetBattleground(); return bg && bg->GetBgTypeID() == BATTLEGROUND_SA && bg->ToBattlegroundSA()->AllowDefenseOfTheAncients(source); }