Class ThunderstormEffect
java.lang.Object
com.pixelmonmod.tcg.duel.attack.AttackEffect
com.pixelmonmod.tcg.duel.attack.effects.ThunderstormEffect
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intstatic final com.mojang.serialization.MapCodec<ThunderstormEffect> protected int -
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
-
benchDamage
protected int benchDamage -
selfDamage
protected int selfDamage
-
-
Constructor Details
-
ThunderstormEffect
public ThunderstormEffect(int benchDamage, int selfDamage)
-
-
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
-