Refactored the Lum Berry case

This commit is contained in:
Ethan 2024-05-19 17:21:35 -04:00
parent 2382579ffb
commit b87b4a7fc3

View File

@ -91,13 +91,10 @@ export function getBerryEffectFunc(berryType: BerryType): BerryEffectFunc {
return (pokemon: Pokemon) => {
if (pokemon.battleData)
pokemon.battleData.berriesEaten.push(berryType);
if (pokemon.status) {
if (pokemon.status)
pokemon.scene.queueMessage(getPokemonMessage(pokemon, getStatusEffectHealText(pokemon.status.effect)));
pokemon.resetStatus();
pokemon.updateInfo();
}
if (pokemon.getTag(BattlerTagType.CONFUSED))
pokemon.lapseTag(BattlerTagType.CONFUSED);
pokemon.resetStatus(true, true)
pokemon.updateInfo();
};
case BerryType.LIECHI:
case BerryType.GANLON: