- 67
- Posts
- 4
- Years
- He/Him
- Seen Nov 16, 2023
So I've been working on a move that does double damage is the user or ally is grass type but it won't work or atleast when I test it on an npc trainer that has the same stats it doesn't work is there something I can do to make this work or does anyone know how I can fit a pbDisplay or something so that a message drops when the effect happens?
################################################################################
# Power is boosted if ally or user is grass (Shimmer Ray)
################################################################################
class PokeBattle_Move_223 < PokeBattle_Move
def pbBaseDamage(basedmg,attacker,opponent)
if attacker.pbHasType?(:GRASS) || attacker.pbPartner.pbHasType?(:GRASS)
return basedmg*2
return basedmg
end
end
end
################################################################################
# Power is boosted if ally or user is grass (Shimmer Ray)
################################################################################
class PokeBattle_Move_223 < PokeBattle_Move
def pbBaseDamage(basedmg,attacker,opponent)
if attacker.pbHasType?(:GRASS) || attacker.pbPartner.pbHasType?(:GRASS)
return basedmg*2
return basedmg
end
end
end