- 961
- Posts
- 8
- Years
- Age 22
- Seen Nov 28, 2022
I was working on some Gen VII abilities, Shields Down in specific. I'm building it from scratch, here is it so far (because of this error I don't have much):
(Under Darmanitan's Zen Mode)
Once its HP is lower than half of its max HP, it transforms immediately after the move that caused it to get lower than half. At the end of the turn, it transforms twice. I only want it to transform after it's been hit, not at the end of the turn. Could someone explain what to do or edit this code to work as I described? I'll figure the rest of Shields Down out myself.
(Under Darmanitan's Zen Mode)
Code:
# Minior
if self.hasWorkingAbility(:SHIELDSDOWN) && @hp<=((@totalhp/2).floor)
if self.form=0
self.form=1; transformed=true
end
end