pokerogue/src/field
Frisk17 89eba349c9
[Move] Implemented Magnet Rise (#2081)
* Partially implemented Magnet Rise

* Implemented Magnet Rise

* Changed pokemon.ts so all TypeImmune tags work instead of just
MagnetRisen

* Magnet Risen is now removed when Gravity is used.

* Magnet Rise is ignored by Thousand Arrows
and Smack Down.

* Fixed a bug where status ground type moves
would also be ignored by Magnet Rise

* Added a message when Magnet Rise is removed

* Inserted TypeImmuneTag check in
getAttackMoveEffectiveness() for the AI

* Created a magnetRiseCondition separately

* Created a test for Magnet Rise

* Bug Fix in Magnet Rise test

* Created Magnet Rise test with Gravity

* Shifted the code from getAttackMoveEffectiveness
and apply into getAttackTypeEffectiveness instead

* Replaced onNextPrompt with doAttack

* Removed redundant runFrom(Phase)

* Replaced magnetRiseCondition with
battlerTags.every anonymous function

* Fixed import errors

* Added an undefined check for summonData
for TypeImmuneTag in getAttackTypeEffectiveness

* Replaced undefined-check with optional chaining
2024-06-17 17:35:06 +02:00
..
anims.ts fix anmation duplicate warnings 2024-05-24 22:57:47 -04:00
arena.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
damage-number-handler.ts ESLint - The Essential Linter and Formatter for JavaScript and TypeScript (#1224) 2024-05-23 11:03:10 -04:00
pokemon-sprite-sparkle-handler.ts ESLint - The Essential Linter and Formatter for JavaScript and TypeScript (#1224) 2024-05-23 11:03:10 -04:00
pokemon.ts [Move] Implemented Magnet Rise (#2081) 2024-06-17 17:35:06 +02:00
trainer.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00