- Pokémon Essentials Version
- v21.1 ✅
This is a move to help fast-moving weak-hitting Pokemon compete! Use this, and the user's Speed is used instead of the user's Attack for this move's calculations. I recommend editing an existing move tons of Pokemon already learn (perhaps Aerial Ace or Quick Attack?) to have this effect.
The following code goes in MoveEffects_MoveAttributes between the code for Foul Play and Secret Sword.
#===============================================================================
# User's Speed is used instead of user's Attack for this move's calculations.
# (Aerial Ace)
#===============================================================================
class Battle::Move::MySpeedIsMyAttack < Battle::Move
def pbGetAttackStats(user, target)
return user.speed, target.stages[:SPEED] + Battle::Battler::STAT_STAGE_MAXIMUM
end
end
The following code goes in MoveEffects_MoveAttributes between the code for Foul Play and Secret Sword.
#===============================================================================
# User's Speed is used instead of user's Attack for this move's calculations.
# (Aerial Ace)
#===============================================================================
class Battle::Move::MySpeedIsMyAttack < Battle::Move
def pbGetAttackStats(user, target)
return user.speed, target.stages[:SPEED] + Battle::Battler::STAT_STAGE_MAXIMUM
end
end
- Credits
- Jason Godwyn