Class HardenEffect
java.lang.Object
com.pixelmonmod.tcg.duel.attack.AttackEffect
com.pixelmonmod.tcg.duel.attack.effects.HardenEffect
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intstatic final com.mojang.serialization.MapCodec<HardenEffect> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyBeforeDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) intmodifyDamage(int damage, PokemonCardState pokemon, GameServerState server) Modify the damage done.type()Methods inherited from class com.pixelmonmod.tcg.duel.attack.AttackEffect
applyAfterDamage, applyDelayAfterDamage, canApply, chooseOppAttack, codec, flipCoin, getCustomGUI, getOpponentSelectorState, getSelectorState, isOptional, modifyTurn
-
Field Details
-
CODEC
-
amount
protected final int amount
-
-
Constructor Details
-
HardenEffect
public HardenEffect(int amount)
-
-
Method Details
-
type
- Specified by:
typein classAttackEffect
-
applyBeforeDamage
public void applyBeforeDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) - Overrides:
applyBeforeDamagein classAttackEffect
-
modifyDamage
Description copied from class:AttackEffectModify the damage done. Usually an effect of DelayEffect.- Overrides:
modifyDamagein classAttackEffect- Parameters:
damage-pokemon-server-- Returns:
-