Bosses can heal through broken segments
parent
0fa5d84af6
commit
be122f4f08
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue