- Joined
- Feb 9, 2025
- Posts
- 3
Hi, I am trying to make an ability that makes the user resistant to any move and hit super-effectively any foe. I tried copying and tweaking Thick Fat (for the DamageCalcFromTarget handler) and Water Bubble (for the DamageCalcFromUser handler) but it doesn't work and I can't understand why. I defined it in the PBS (I know because the game recognizes it), so I think I either wrote something wrong in the scripts (Battle_AbilityEffects section, don't know if it's wrong), or forgot to define something somewhere.
DamageCalcFromUser handler:
DamageCalcFromTarget handler:
Could someone help please?
DamageCalcFromUser handler:
Ruby:
Battle::AbilityEffects::DamageCalcFromUser.add(:DIVINITY,
proc { |ability, user, target, move, mults, power, type|
mults[:attack_multiplier] *=2
}
}
DamageCalcFromTarget handler:
Ruby:
Battle::AbilityEffects::DamageCalcFromTarget.add(:DIVINITY,
proc { |ability, user, target, move, mults, power, type|
mults[:power_multiplier] /=0.75
}
}
Could someone help please?