- 79
- Posts
- 9
- Years
- Seen Jan 12, 2024
I expect lastMoveUsed works the same, except that some moves are exempt from being set as the lastMoveUsedSketch.
Which bit do you think works out which move was last used?
Would it be something like
Code:
class PokeBattle_Move_D07 < PokeBattle_Move
def pbBaseDamage(basedmg,attacker,opponent)
return basedmg*2 if isConst?(PBMoveData.new(attacker.lastMoveUsed).isSoundBased?)
return basedmg
end
end
Doing that still returns an undefined method error for 'isSoundBased?'