- 217
- Posts
- 15
- Years
- Seen Nov 29, 2021
Code:
#ARACHNOPHOBIA
if target.hasWorkingAbility(:ARACHNOPHOBIA) && !thismove.pbIsStatus?(thismove.type)
if @battle.pbRandom(10)==0
PBDebug.log("ARACHNOPHOBIA triggered #{pbThis} was unable to move")
return false
end
end
#END ARACHNOPHOBIA
As you can see, it's supposed to result in damaging moves targeting the ability-wielder to have a 1 in 10 chance of failing. I tried putting it in def pbTryUseMove, but target isn't defined then (or something).
Last edited by a moderator: