- 35
- Posts
- 5
- Years
- Seen Dec 25, 2022
Using RPG maker/essentials I'm trying to create an ability that works like Wonder Guard, but instead of protecting you from non super effective hits, it protects you from Physical moves (only Special works). The move is called Power Man, and this is my attempted script for anyone that might know what's wrong with it.
Spoiler:
if isConst?(target.ability,PBAbilities,:POWERMAN) && pbIsPhysical?(type)
@battle.pbDisplay(_INTL("{1} avoided damage with Power Man!",target.pbThis))
return false
end
@battle.pbDisplay(_INTL("{1} avoided damage with Power Man!",target.pbThis))
return false
end