Class FlipsMultiplyEffect
java.lang.Object
com.pixelmonmod.tcg.duel.attack.AttackEffect
com.pixelmonmod.tcg.duel.attack.effects.FlipsMultiplyEffect
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<FlipsMultiplyEffect> intprotected final intprotected final FlipsMultiplyEffect.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyBeforeDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) flipCoin(List<CoinSide> currentResult, PokemonCardState pokemon, GameServerState server) This function receives current flipping result and adding more if the effect neededtype()Methods inherited from class com.pixelmonmod.tcg.duel.attack.AttackEffect
applyAfterDamage, applyDelayAfterDamage, canApply, chooseOppAttack, codec, getCustomGUI, getOpponentSelectorState, getSelectorState, isOptional, modifyDamage, modifyTurn
-
Field Details
-
CODEC
-
flipCount
protected final int flipCount -
type
-
counter
public int counter
-
-
Constructor Details
-
FlipsMultiplyEffect
-
-
Method Details
-
type
- Specified by:
typein classAttackEffect
-
flipCoin
public List<CoinSide> flipCoin(List<CoinSide> currentResult, PokemonCardState pokemon, GameServerState server) Description copied from class:AttackEffectThis function receives current flipping result and adding more if the effect needed- Overrides:
flipCoinin classAttackEffect- Returns:
- true or false
-
applyBeforeDamage
public void applyBeforeDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) - Overrides:
applyBeforeDamagein classAttackEffect
-