Rename SELF hitresult to CONFUSION

This commit is contained in:
Christopher Schmidt 2025-02-02 18:11:18 -05:00
parent 1ebab2de57
commit 4389f7b6fb
2 changed files with 2 additions and 2 deletions

View File

@ -665,7 +665,7 @@ export class ConfusedTag extends BattlerTag {
const def = pokemon.getEffectiveStat(Stat.DEF);
const damage = toDmgValue(((((2 * pokemon.level / 5 + 2) * 40 * atk / def) / 50) + 2) * (pokemon.randSeedIntRange(85, 100) / 100));
globalScene.queueMessage(i18next.t("battlerTags:confusedLapseHurtItself"));
pokemon.damageAndUpdate(damage, HitResult.SELF);
pokemon.damageAndUpdate(damage, HitResult.CONFUSION);
pokemon.battleData.hitCount++;
(globalScene.getCurrentPhase() as MovePhase).cancel();
}

View File

@ -42,7 +42,7 @@ export class DamageAnimPhase extends PokemonPhase {
applyDamage() {
switch (this.damageResult) {
case HitResult.EFFECTIVE:
case HitResult.SELF:
case HitResult.CONFUSION:
globalScene.playSound("se/hit");
break;
case HitResult.SUPER_EFFECTIVE: