Class HardenEffect
java.lang.Object
com.pixelmonmod.tcg.duel.attack.AttackEffect
com.pixelmonmod.tcg.duel.attack.effects.HardenEffect
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final int
static final com.mojang.serialization.MapCodec
<HardenEffect> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyBeforeDamage
(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) int
modifyDamage
(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:
type
in classAttackEffect
-
applyBeforeDamage
public void applyBeforeDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) - Overrides:
applyBeforeDamage
in classAttackEffect
-
modifyDamage
Description copied from class:AttackEffect
Modify the damage done. Usually an effect of DelayEffect.- Overrides:
modifyDamage
in classAttackEffect
- Parameters:
damage
-pokemon
-server
-- Returns:
-