- 26
- Posts
- 7
- Years
- Seen Dec 19, 2018
Hi. So I've been looking for a working Photon Geyser move script to no avail. I found one script floating around on the Gen VII project but it doesn't seem to work as intended:
After testing, this script seems to calculate off the opponents special defense, regardless of whether or not your Attack or SpA is higher. It seems to be coded correctly by the looks of it which is why I'm confused. Anyone got an idea?
Code:
class PokeBattle_Move_165 < PokeBattle_Move
def pbBaseDamage(basedmg,attacker,opponent)
if attacker.attack > attacker.spatk
attacker.spatk=attacker.attack
opponent.spdef=opponent.defense
elsif attacker.spatk >= attacker.attack
attacker.spatk=attacker.spatk
opponent.spdef=opponent.spdef
end
end
end
After testing, this script seems to calculate off the opponents special defense, regardless of whether or not your Attack or SpA is higher. It seems to be coded correctly by the looks of it which is why I'm confused. Anyone got an idea?
Last edited: