A small problem I think. Psyblade's power is boosted even if user is not affected by terrain, according to pokemon wiki in many languages. But I can't confirm.
A minor overlook in Damage Calc Refactor. Function code of Psyblade("IncreasePowerInElectricTerrain") is still "IncreasePowerWhileElectricTerrain" there.
Since it's only triggered when using a move so you can just edit Battle::Move::StatUpMove and Battle::Move::MultiStatUpMove to prevent infinite trigger.
I wonder how to make the game run without PBS files as I don't want players to touch any PBS files. But when I delete the PBS folder and run the game out of debug mode it crashes.
No such file or directory @ rb_sysopen - PBS/innate_sets.txt
[Innate Abilities] Innate Abilities - InnateSets...
And change Bad Dream's ability effect codes to this to hide ability splash.
Battle::AbilityEffects::EndOfRoundEffect.add(:BADDREAMS,
proc { |ability, battler, battle|
battle.allOtherSideBattlers(battler.index).each do |b|
next if battle.pbCheckOpposingAbility(:SWEETDREAMS)
next...
I am battling with a pokemon having :INDIRECT immunity. I put it to sleep and when Bad Dr4eams is triggered this happens. I can'f find any solution.
Exception: ArgumentError
Message: wrong number of arguments (given 2, expected 1)
Backtrace:
Battle:815:in `pbDisplay'
[Deluxe Battle Kit] [004]...