mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-27 09:16:03 +00:00
Fix Sturdy HP check in wrong place
This commit is contained in:
parent
e171b10d40
commit
91ab0b4b32
@ -1172,7 +1172,8 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
this.scene.applyModifiers(EnemyDamageReducerModifier, false, damage);
|
||||
}
|
||||
|
||||
if (damage.value && this.getHpRatio() === 1) {
|
||||
if (damage.value) {
|
||||
if (this.getHpRatio() === 1)
|
||||
applyPreDefendAbAttrs(PreDefendFullHpEndureAbAttr, this, source, battlerMove, cancelled, damage);
|
||||
|
||||
const oneHitKo = result === HitResult.ONE_HIT_KO;
|
||||
|
Loading…
Reference in New Issue
Block a user