Anyone can tell me why it doesn't works?
Code:
def pbModifyType(type,attacker,opponent)
if type>=0
if attacker.hasWorkingAbility(:NORMALIZE) && hasConst?(PBTypes,:NORMAL)
type=getConst(PBTypes,:NORMAL)
[COLOR="Red"] if attacker.hasWorkingAbility(:LIQUIDVOICE) && thismove.hasFlags?(k)
type=getConst(PBTypes,:WATER) || 0
end[/COLOR]
elsif isConst?(type,PBTypes,:NORMAL)
if attacker.hasWorkingAbility(:AERILATE) && hasConst?(PBTypes,:FLYING)
type=getConst(PBTypes,:FLYING)
@powerboost=true
elsif attacker.hasWorkingAbility(:REFRIGERATE) && hasConst?(PBTypes,:ICE)
type=getConst(PBTypes,:ICE)
@powerboost=true
elsif attacker.hasWorkingAbility(:PIXILATE) && hasConst?(PBTypes,:FAIRY)
type=getConst(PBTypes,:FAIRY)
@powerboost=true
end
end
end
return type
end
Last edited by a moderator: