Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhancement][EnemyAI] Add support for simulated damage calculations …
…and "Search for KO" move filtering (#3975) * Create getAttackDamage function * Add ignoreAbility params to getBattleStat * Rewrite Pokemon.apply * renamed damage variables * Add `ignoreSourceAbility` arg to `getAttackDamage` * Enemy AI now searches for KO moves * Add probabilistic test for KO search * Add tests to `damage_calculation` * "killMoves" --> "koMoves" * Clean up `randomMultiplier` * Clean up damage calculation test Co-authored-by: NightKev <[email protected]> * Fix stabMultiplier using base type for Tera bonus * Restore simulation capabilities for Unaware * move sourceTeraType closer to where it's used * Add base damage test * Exclude counter moves from KO search --------- Co-authored-by: NightKev <[email protected]>
- Loading branch information