def pbModifyType(type,attacker,opponent)
if type>=0
if attacker.hasWorkingAbility(:NORMALIZE) && hasConst?(PBTypes,:NORMAL)
type=getConst(PBTypes,:NORMAL)
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
elsif isConst?(type,PBTypes,:ICE)
if attacker.hasWorkingAbility(:ABILITYNAME) && hasConst?(PBTypes,:FIRE)
type=getConst(PBTypes,:FIRE)
@powerboost=true
end
elsif isConst?(type,PBTypes,:FIRE)
if attacker.hasWorkingAbility(:ABILITYNAME) && hasConst?(PBTypes,:ICE)
type=getConst(PBTypes,:ICE)
@powerboost=true
end
end
end
[B][I]end[/I][/B]
return type
end