Hey, I encountered a crash in
[006] Z-A Battle Function.rb
: Exception ArgumentError at 015:Validation:29 - Invalid argument passed to method. Expected 10500.0 to be a Integer, but got Float.
The issue is that tMoney can become a float, which the money= setter rejects.
I fixed it by adding...
Switch Intelligence
ReserveLastPokemon Support**: Fixed an issue where the AI would switch into its Ace (last Pokemon) prematurely. It now respects the ReserveLastPokemon trainer flag.
Switch Loop Fix**: Implemented stability checks to prevent the AI from endlessly switching between two Pokemon...
Nononever updated Advanced AI System with a new update entry:
Switch Intteligence, Ace Pokemon Rule, Critical Hits
Read the rest of this update entry...
Multi-hit move scoring (Pin Missile now calculates total power correctly)
Low BP move scoring precision (25 BP moves no longer rounded down)
Crash with Midbattle Scripts (ArgumentError and NoMethodError)
Deprecated baseDamage calls updated to .power