mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
Reverted changes, someone else can sort
This commit is contained in:
parent
8369f5540c
commit
50f53516b8
@ -55,14 +55,7 @@ export function getStatusEffectActivationText(statusEffect: StatusEffect, pokemo
|
|||||||
switch (statusEffect) {
|
switch (statusEffect) {
|
||||||
case StatusEffect.POISON:
|
case StatusEffect.POISON:
|
||||||
case StatusEffect.TOXIC:
|
case StatusEffect.TOXIC:
|
||||||
// Placeholder, idk how to fix this, too new to typeScript, but it functions as normal anyway because of the pokemon && clause always returning the else value
|
|
||||||
if (pokemon && pokemon.getAbility().id === Abilities.POISON_HEAL) {
|
|
||||||
console.log("Poison Heal ability detected");
|
|
||||||
return ' had its\nHP restored!';
|
|
||||||
} else {
|
|
||||||
console.log("No Poison Heal ability detected");
|
|
||||||
return ' is hurt\nby poison!';
|
return ' is hurt\nby poison!';
|
||||||
}
|
|
||||||
case StatusEffect.PARALYSIS:
|
case StatusEffect.PARALYSIS:
|
||||||
return ' is paralyzed!\nIt can\'t move!';
|
return ' is paralyzed!\nIt can\'t move!';
|
||||||
case StatusEffect.SLEEP:
|
case StatusEffect.SLEEP:
|
||||||
|
Loading…
Reference in New Issue
Block a user