public abstract class DamageReflect extends SpecialAttackBase
| Modifier and Type | Field and Description |
|---|---|
float |
multiplier
The damage multiplier for the move.
|
modifiers| Constructor and Description |
|---|
DamageReflect(float multiplier)
Initializes the effect.
|
| Modifier and Type | Method and Description |
|---|---|
AttackResult |
applyEffectDuring(PixelmonWrapper user,
PixelmonWrapper target)
Causes effects before move connects.
|
abstract boolean |
isCorrectCategory(AttackCategory category)
Checks if the attack category is able to be reflected by the move.
|
void |
weightEffect(PixelmonWrapper pw,
MoveChoice userChoice,
java.util.List<MoveChoice> userChoices,
java.util.List<MoveChoice> bestUserChoices,
java.util.List<MoveChoice> opponentChoices,
java.util.List<MoveChoice> bestOpponentChoices)
Determines a weight for the move that has this effect.
|
applyAfterEffect, applyEffect, cantMiss, ignoresWeather, modifyPriorityapplyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, applyMissEffect, changeChance, checkChance, dealtDamage, doesPersist, getChance, getWeightWithChance, isChance, modifyDamage, modifyPriority, modifyTypeEffectiveness, modifyTypeEffectivenesspublic DamageReflect(float multiplier)
multiplier - The damage multiplier for the move.public AttackResult applyEffectDuring(PixelmonWrapper user, PixelmonWrapper target)
SpecialAttackBaseapplyEffectDuring in class SpecialAttackBaseuser - The move's user.target - The move's target.public abstract boolean isCorrectCategory(AttackCategory category)
category - The category of the attack being used.public void weightEffect(PixelmonWrapper pw, MoveChoice userChoice, java.util.List<MoveChoice> userChoices, java.util.List<MoveChoice> bestUserChoices, java.util.List<MoveChoice> opponentChoices, java.util.List<MoveChoice> bestOpponentChoices)
EffectBaseweightEffect in class EffectBasepw - The Pokémon using the move.userChoice - The move with this effect.userChoices - All choices the Pokémon has for the turn.bestUserChoices - The best offensive choices the Pokémon has for the turn.opponentChoices - All choices the opponent has for the turn.bestOpponentChoices - The best choices the opponent has for the turn.