- 19
- Posts
- 4
- Years
- Seen Oct 27, 2023
Normal-type moves become Fairy type and deal 20% more damage.
Paste this first in PokeBattle_Move under Normalize:
def pbType(type,attacker,opponent)
if isConst?(type,PBTypes,:NORMAL) && attacker.hasWorkingAbility(:PIXILATE)
type=getConst(PBTypes,:FAIRY) || 0
end
return type
end
Then paste this in PokeBattle_Move under Flashfire which increases the damage:
if attacker.hasWorkingAbility(:PIXILATE) &&
isConst?(type,PBTypes,:FAIRY)
atkmult=(atkmult*1.2).round
end
And at last paste this in PokeBattle_AI under flashfire which also increases the damage:
#Pixilate
if skill>=PBTrainerAI.highSkill
if attacker.hasWorkingAbility(:PIXILATE) &&
isConst?(type,PBTypes,:FAIRY)
atk=(atk*1.2).round
end
end
Paste this first in PokeBattle_Move under Normalize:
def pbType(type,attacker,opponent)
if isConst?(type,PBTypes,:NORMAL) && attacker.hasWorkingAbility(:PIXILATE)
type=getConst(PBTypes,:FAIRY) || 0
end
return type
end
Then paste this in PokeBattle_Move under Flashfire which increases the damage:
if attacker.hasWorkingAbility(:PIXILATE) &&
isConst?(type,PBTypes,:FAIRY)
atkmult=(atkmult*1.2).round
end
And at last paste this in PokeBattle_AI under flashfire which also increases the damage:
#Pixilate
if skill>=PBTrainerAI.highSkill
if attacker.hasWorkingAbility(:PIXILATE) &&
isConst?(type,PBTypes,:FAIRY)
atk=(atk*1.2).round
end
end