mechanics.moves
Class MoveList.FixedAttackMove
java.lang.Object
mechanics.moves.PokemonMove
mechanics.moves.StatusMove
mechanics.moves.MoveList.FixedAttackMove
- All Implemented Interfaces:
- java.lang.Cloneable
- Enclosing class:
- MoveList
public static class MoveList.FixedAttackMove
- extends StatusMove
A move that prevents the user from using other moves until the move misses
or the number of turns is reached.
Methods inherited from class mechanics.moves.PokemonMove |
beginTurn, canCriticalHit, getAccuracy, getEffectiveness, getEffectiveness, getMoveListEntry, getPower, getPp, getPriority, getStatusException, getType, hasHighCriticalHitRate, isSpecial, setAccuracy, setPower, setType, switchIn |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MoveList.FixedAttackMove
public MoveList.FixedAttackMove(PokemonType type,
int power,
double accuracy,
int pp,
MoveList.FixedAttackEffect eff)
attemptHit
public boolean attemptHit(BattleMechanics mech,
Pokemon user,
Pokemon target)
- Description copied from class:
StatusMove
- Attempt a hit. Personal enhancement moves never miss, but other status
moves can.
- Overrides:
attemptHit
in class StatusMove
use
public int use(BattleMechanics mech,
Pokemon user,
Pokemon target)
- Description copied from class:
StatusMove
- The rules for whether this move can hit are elaborate. If the move does
damage then the normal type rules apply; if the move has no effect then
it will not inflict statuses either. However, if the move does not
do damage and does not inflict one of the SPECIAL_EFFECT_LOCK statuses
then it can hit even types normally immune to the move's type.
Two intrinsic abilities also affect this method. If the user has
Serene Grace then the chance of each effect being applied is double. If
the target has Shield Dust then none of the effects can be applied to it
so long as the move does damage.
- Overrides:
use
in class StatusMove