Class DisableAttackEffect
java.lang.Object
com.pixelmonmod.tcg.duel.attack.AttackEffect
com.pixelmonmod.tcg.duel.attack.effects.DisableAttackEffect
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<DisableAttackEffect> protected final booleanprotected final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyAfterDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server, int finalDamage) voidapplyBeforeDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) booleancanApply(List<Object> parameters, CardAttack cardAttack, GameServerState server) booleantype()Methods inherited from class com.pixelmonmod.tcg.duel.attack.AttackEffect
applyDelayAfterDamage, codec, flipCoin, getCustomGUI, getOpponentSelectorState, getSelectorState, isOptional, modifyDamage, modifyTurn
-
Field Details
-
CODEC
-
turnCount
protected final int turnCount -
onMe
protected final boolean onMe
-
-
Constructor Details
-
DisableAttackEffect
public DisableAttackEffect(int turnCount, boolean onMe)
-
-
Method Details
-
type
- Specified by:
typein classAttackEffect
-
applyAfterDamage
public void applyAfterDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server, int finalDamage) - Overrides:
applyAfterDamagein classAttackEffect
-
chooseOppAttack
public boolean chooseOppAttack()- Overrides:
chooseOppAttackin classAttackEffect
-
canApply
- Overrides:
canApplyin classAttackEffect
-
applyBeforeDamage
public void applyBeforeDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) - Overrides:
applyBeforeDamagein classAttackEffect
-