Class ThunderstormEffect
java.lang.Object
com.pixelmonmod.tcg.duel.attack.AttackEffect
com.pixelmonmod.tcg.duel.attack.effects.ThunderstormEffect
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
static final com.mojang.serialization.MapCodec
<ThunderstormEffect> protected int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyBeforeDamage
(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:
type
in classAttackEffect
-
flipCoin
public List<CoinSide> flipCoin(List<CoinSide> currentResult, PokemonCardState pokemon, GameServerState server) Description copied from class:AttackEffect
This function receives current flipping result and adding more if the effect needed- Overrides:
flipCoin
in classAttackEffect
- Returns:
- true or false
-
applyBeforeDamage
public void applyBeforeDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) - Overrides:
applyBeforeDamage
in classAttackEffect
-