Bosses can heal through broken segments
This commit is contained in:
1 parent
0fa5d84af6
commit
be122f4f08
1 file changed
+2
-1
+2
-1
@@ -2381,7 +2381,8 @@ export class EnemyPokemon extends Pokemon {
|
|||||||
const healAmount = Math.min(amount, this.getMaxHp() - this.hp, Math.round(hpThreshold + (segmentSize * segmentBypassCount) - this.hp));
|
const healAmount = Math.min(amount, this.getMaxHp() - this.hp, Math.round(hpThreshold + (segmentSize * segmentBypassCount) - this.hp));
|
||||||
this.hp += healAmount;
|
this.hp += healAmount;
|
||||||
return healAmount;
|
return healAmount;
|
||||||
}
|
} else if (s >= this.bossSegmentIndex)
|
||||||
|
return super.heal(amount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user