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 boolean
protected final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyAfterDamage
(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server, int finalDamage) void
applyBeforeDamage
(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) boolean
canApply
(List<Object> parameters, CardAttack cardAttack, GameServerState server) boolean
type()
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:
type
in classAttackEffect
-
applyAfterDamage
public void applyAfterDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server, int finalDamage) - Overrides:
applyAfterDamage
in classAttackEffect
-
chooseOppAttack
public boolean chooseOppAttack()- Overrides:
chooseOppAttack
in classAttackEffect
-
canApply
- Overrides:
canApply
in classAttackEffect
-
applyBeforeDamage
public void applyBeforeDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) - Overrides:
applyBeforeDamage
in classAttackEffect
-