mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
Updated syntax
This commit is contained in:
parent
522c0d9418
commit
81a7116cfe
@ -2920,7 +2920,7 @@ export class PostTurnStatusEffectPhase extends PokemonPhase {
|
|||||||
this.scene.queueMessage(getPokemonMessage(pokemon, getStatusEffectActivationText(pokemon.status.effect)));
|
this.scene.queueMessage(getPokemonMessage(pokemon, getStatusEffectActivationText(pokemon.status.effect)));
|
||||||
|
|
||||||
let netEffect = 0; // This variable now handles both healing and damage
|
let netEffect = 0; // This variable now handles both healing and damage
|
||||||
const isHealing = pokemon.hasAbility.id === Abilities.POISON_HEAL; // Added check for both Ability and the new Passives
|
const isHealing = pokemon.hasAbility(Abilities.POISON_HEAL); // Added check for both Ability and the new Passives
|
||||||
|
|
||||||
switch (pokemon.status.effect) {
|
switch (pokemon.status.effect) {
|
||||||
case StatusEffect.POISON:
|
case StatusEffect.POISON:
|
||||||
|
Loading…
Reference in New Issue
Block a user