void BattleGroundEY::RespawnDroppedFlag() { RespawnFlag(); GameObject* obj = GetBgMap()->GetGameObject(GetDroppedFlagGuid()); if (obj) obj->Delete(); else sLog.outError("BattleGroundEY: Unknown dropped flag: %s", GetDroppedFlagGuid().GetString().c_str()); ClearDroppedFlagGuid(); }
void BattleGroundWS::RespawnFlagAfterDrop(Team team) { if (GetStatus() != STATUS_IN_PROGRESS) return; RespawnFlag(team, false); if (team == ALLIANCE) SendMessageToAll(LANG_BG_WS_ALLIANCE_FLAG_RESPAWNED, CHAT_MSG_BG_SYSTEM_NEUTRAL); else SendMessageToAll(LANG_BG_WS_HORDE_FLAG_RESPAWNED, CHAT_MSG_BG_SYSTEM_NEUTRAL); PlaySoundToAll(BG_WS_SOUND_FLAGS_RESPAWNED); GameObject* obj = GetBgMap()->GetGameObject(GetDroppedFlagGuid(team)); if (obj) obj->Delete(); else sLog.outError("Unknown dropped flag bg: %s", GetDroppedFlagGuid(team).GetString().c_str()); ClearDroppedFlagGuid(team); }