战斗等级显示需要完善

This commit is contained in:
2025-05-26 16:38:59 +08:00
parent 85856ccc28
commit 3efbf21a14
8 changed files with 159 additions and 109 deletions

View File

@@ -103,25 +103,7 @@ export class SkillCom extends CCComp {
if(oCol.group!=this.group){
if(target == null) return;
let remainingDamage = this.ap;
if (target.shield > 0) {
target.shield -= 1
target.BUFFCOMP.tooltip(5,"*吸收*");
remainingDamage = 0
if (target.shield <= 0) {
if(target == null) return;
target.BUFFCOMP.show_shield(false);
}
}else{
if(target == null) return;
target.hp -= remainingDamage;
if(target.hp <= 0) {
if(target == null) return;
target.BUFFCOMP.dead()
if(target.ent == null) return;
target.ent.destroy();
}
target.showDamage(remainingDamage, true);
}
target.do_atked(remainingDamage)
this.ent.destroy()
}
}