public void EndDuel() { if (Duel != null) { Player enemy = Duel.Player1.Entity.Name == Entity.Name ? Duel.Player2 : Duel.Player1; Engine.Log().Log($"[{Entity.Name}] Ended duel against {enemy.Entity.Name}."); Duel.EndDuel(); } }
public void EndDuel() { if (Duel != null) { Player enemy = Duel.Player1.Entity.Name == Entity.Name ? Duel.Player2 : Duel.Player1; Engine.Log().Log($"[{Entity.Name}] Ended duel against {enemy.Entity.Name}."); Duel.EndDuel(); } }