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
base_damage exist, it just getting replaced in v22 with power
For DBK, i have not enough tests and feedback, but i will improve the code and add missing support with every report, but i change base_damage with power now
Added
Global Effectiveness Guard: Added a robust wrapper in Hotfixes.rb to prevent ArgumentError crashes when nil types are passed to Effectiveness.calculate.
Matchup Improvement Logic: AI now compares the candidate Pokemon's score against the current Pokemon's score. This avoids switching for...