- 69
- Posts
- 14
- Years
- Seen Sep 26, 2016
Hey guys, I've troubles making an ability which works like leftovers.
This is my try but it doesn't work.
# Reinheit
# A Pokémon's turncount is 0 if it became active after the beginning of a round
if i.turncount>0 && i.hasWorkingAbility(:REINHEIT)
if hpgain=i.pbRecoverHP((i.totalhp/16).floor,true)
pbDisplay(_INTL("{1}'s {2} restored its HP a little!",i.pbThis,PBAbilities.getName(i.ability))) if hpgain>0
end
end
Can you help me out please?
This is my try but it doesn't work.
# Reinheit
# A Pokémon's turncount is 0 if it became active after the beginning of a round
if i.turncount>0 && i.hasWorkingAbility(:REINHEIT)
if hpgain=i.pbRecoverHP((i.totalhp/16).floor,true)
pbDisplay(_INTL("{1}'s {2} restored its HP a little!",i.pbThis,PBAbilities.getName(i.ability))) if hpgain>0
end
end
Can you help me out please?
Last edited by a moderator: