pokerogue
pokerogue copied to clipboard
Bugfix: Abilities check final move type instead of default move type
Updates abilities to no longer use PokemonMove
but instead Move
so that they can accurately track the type of a move in case it gets updated
That same move
object is maintained through all of MoveEffectPhase
in phases.ts
and in all of .apply()
to the Pokemon
object in pokemon.ts
Has only been lightly tested to ensure it functions, but is this closer to what you were thinking? I could technically move
applyMoveAttrs(VariableMoveTypeAttr, source, this, move);
applyPreAttackAbAttrs(MoveTypeChangeAttr, source, this, move, typeChangeMovePowerMultiplier);
outside of pokemon.ts
before hitResult
. @bennybroseph