public class AbilityClause extends BattleClause
| Constructor and Description |
|---|
AbilityClause(java.lang.String id,
java.lang.Class<? extends AbstractAbility>... abilities)
Creates a clause to ban Abilities.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
validateSingle(Pokemon pokemon)
Checks if the rule allows a Pokémon to be chosen for battle.
|
compareTo, decodeInto, encodeInto, equals, getDescription, getID, getLocalizedName, getLocalizedName, hashCode, setDescription, toString, validateTeam@SafeVarargs
public AbilityClause(java.lang.String id,
java.lang.Class<? extends AbstractAbility>... abilities)
id - The unique ID of the battle clause.abilities - The banned Abilities.public boolean validateSingle(Pokemon pokemon)
BattleClausevalidateSingle in class BattleClausepokemon - The Pokémon to check.