mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 15:22:19 +02:00
Rename SELF hitresult to CONFUSION
This commit is contained in:
parent
1ebab2de57
commit
4389f7b6fb
@ -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();
|
||||
}
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user