Updated syntax

This commit is contained in:
EmoUsedHM01 2024-04-29 19:47:38 +01:00 committed by GitHub
parent b78debe2b1
commit a9a2d893f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2919,7 +2919,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(Abilities.POISON_HEAL); // Added check for both Ability and the new Passives const isHealing = pokemon.hasAbility.id === 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: