浏览代码

修复战场转移时塔血量信息未更新的问题

大爷 1 年之前
父节点
当前提交
0383268335
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Unity/Assets/Scripts/Codes/Hotfix/Client/battle/unit/BattleUnit.cs

+ 2 - 2
Unity/Assets/Scripts/Codes/Hotfix/Client/battle/unit/BattleUnit.cs

@@ -136,6 +136,7 @@ public class BattleUnit : BattleObject
     {
         if (ZUnit.Info.Properties is XmdsUnitProperties prop)
         {
+            //Log.Debug($"hp({ZUnit.TemplateID}) change: {ZUnit.HP}");
             if (prop.GameStatusType == XmdsUnitProperties.StatusType.SpecialElite)
             {
                 var hp = ZUnit.HP;
@@ -148,7 +149,6 @@ public class BattleUnit : BattleObject
                 RefreshBossHPBar(prop);
                 return;
             }
-            //Log.Debug($"hp({ZUnit.ObjectID}) change: {ZUnit.HP}");
 
             if (prop.ShowHPBanner)
             {
@@ -241,7 +241,7 @@ public class BattleUnit : BattleObject
         });
         actionChangeHandler.AddListener(UnitActionStatus.HitMove, stun);
         actionChangeHandler.AddListener(UnitActionStatus.Dead, (o) => {
-            OnHPChanged();
+            //OnHPChanged();
         });
         actionChangeHandler.AddListener(UnitActionStatus.Damage, (o) => { });
         actionChangeHandler.AddListener(UnitActionStatus.Pick, (o) => { });