fix: 特殊战前后勇士血量应该不变

This commit is contained in:
unanmed 2024-11-17 22:36:14 +08:00
parent 48ea5a8c7d
commit d99278c036

View File

@ -119,6 +119,8 @@ export class TowerBoss extends BarrageBoss {
/** 技能7的释放间隔 */ /** 技能7的释放间隔 */
private skill7Interval: number = 10000; private skill7Interval: number = 10000;
private heroHp: number = 0;
constructor() { constructor() {
super(); super();
@ -168,6 +170,8 @@ export class TowerBoss extends BarrageBoss {
TowerBoss.effect.start(); TowerBoss.effect.start();
TowerBoss.effect.use(); TowerBoss.effect.use();
this.heroHp = core.status.hero.hp;
} }
override end() { override end() {
@ -189,6 +193,7 @@ export class TowerBoss extends BarrageBoss {
AttackProjectile.end(); AttackProjectile.end();
TowerBoss.effect.end(); TowerBoss.effect.end();
core.status.hero.hp = this.heroHp;
Mota.Plugin.require('replay_g').clip('choice:0'); Mota.Plugin.require('replay_g').clip('choice:0');
} }