mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 15:22:19 +02:00
Fixes hit result for stealth rock
This commit is contained in:
parent
27c01bbbc4
commit
a3dbe62123
@ -864,7 +864,7 @@ class StealthRockTag extends ArenaTrapTag {
|
||||
}
|
||||
const damage = toDmgValue(pokemon.getMaxHp() * damageHpRatio);
|
||||
globalScene.queueMessage(i18next.t("arenaTag:stealthRockActivateTrap", { pokemonNameWithAffix: getPokemonNameWithAffix(pokemon) }));
|
||||
pokemon.damageAndUpdate(damage, HitResult.OTHER);
|
||||
pokemon.damageAndUpdate(damage, HitResult.INDIRECT);
|
||||
if (pokemon.turnData) {
|
||||
pokemon.turnData.damageTaken += damage;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user