protected PlayerStatus GetPlayerOrOpponent(Event lastEvent = null) { if ((lastEvent != null) ? lastEvent.get_alt() : IsAltDown()) { int localPlayerId = m_fightStatus.localPlayerId; foreach (PlayerStatus item in m_fightStatus.EnumeratePlayers()) { if (item.id != localPlayerId) { return(item); } } return(null); } return(m_fightStatus.GetLocalPlayer()); }