I'm a big fan of Pokemon Elite Redux, and want to recreate some of the abilities in my Essentials Game. Here are the ones I want to recreate:
Sea Guardian: Raises user's highest stat by 1 when it Rains.
Sand Song: Gives sound moves a 1.2x boost and turn Ground Type if they are Normal Type...
This is the code in the Move_UsageCalcualtions script. Is it normal?:
def pbAdditionalEffectChance(user, target, effectChance = 0)
return 0 if target.hasActiveAbility?(:SHIELDDUST) && !@battle.moldBreaker
ret = (effectChance > 0) ? effectChance : @addlEffect
return ret if ret > 100...
The message shows up on any damaging moves, but it doesn’t crash the game. It just shows it every time I attack, which gets annoying. Not sure what is causing it.
I've honestly spent way too long trying to figure out what is causing this error. Like I said in my last message, I can send you the files for my game if that could help. Other than that, I might have to hold off on using DBK until the issue is found.
I could send you the files to my game if you want. I literally have no idea what could be conflicting with DBK, since all of my moves and abilities (With the exception of a few) are all variations of other moves and abilities. When you do find the issue, I'd recommend making a patch to DBK to...
I didn't edit anything involving pbAdditionalEffectChance. As a matter of fact, none of the new moves, items, or abilities I made use pbAdditionalEffectChance. When I remove DBK from my plugins, the error seems to go away, so my assumption is that something is conflicting with the plugin scripts...
Looks like the issue I've been having isn't related to M.A.G.:
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]
Exception: NoMethodError
Message: undefined method `pbAdditionalEffectChance' for #<Battle::Move::None>
Backtrace:
Battler_UseMove:716:in `block in pbProcessMoveHit'...