Dragomordor / SimpleTMsFabric

This Minecraft mod is an expansion to the Cobblemon mod, integrating TMs (Technical Machines) and TRs (Technical Records) from the Pokémon universe. The mod allows players to teach moves to their Pokémon, with either a TM or TR.
2 stars 3 forks source link

Changed battle fainted event to use BattlePokemon.getEffectedPokemon #3

Closed davo899 closed 7 months ago

davo899 commented 7 months ago

BattlePokemon.getEntity can be null, so should use BattlePokemon.getEffectedPokemon instead of BattlePokemon.getEntity.getPokemon (Also did a small refactor).

Dragomordor commented 7 months ago

Seems all good, thanks for the input!