Ejemplo n.º 1
0
 public SwapPokemon(Slot slot, Unique.IPokemon replacement) : base(slot)
 {
     if (!slot.Participant.Party.Contains(replacement))
     {
         throw new ArgumentException("Replacement pokemon is not part of the Participant's Party", "replacement");
     }
     if (!replacement.HasFainted())
     {
         throw new ArgumentException("Replacement pokemon has fainted", "replacement");
     }
     Replacement = replacement;
 }