|
@@ -44,6 +44,11 @@ public class BattleUnit : BattleObject
|
|
|
zu.OnRemoveBuffByOverlayLevel += (ZoneUnit unit, ZoneUnit.BuffState buff) => { };
|
|
|
zu.OnActionSubStatusChanged += OnActionSubStatusChanged;
|
|
|
}
|
|
|
+ public override void OnSleep()
|
|
|
+ {
|
|
|
+ base.OnSleep();
|
|
|
+ Vip = 0;
|
|
|
+ }
|
|
|
|
|
|
private static uint groupId = 1;
|
|
|
protected static uint GroupId()
|
|
@@ -179,12 +184,12 @@ public class BattleUnit : BattleObject
|
|
|
}
|
|
|
else if(unit.TemplateID == ZUnit.TemplateID)
|
|
|
{
|
|
|
- if(hp <= 0)
|
|
|
+ /*if(hp <= 0)
|
|
|
{
|
|
|
hide = i;
|
|
|
EventSystem.Instance.Publish(HPRefresh.Clone(HPRefresh.Index.Boss1 + pgList.Count - 1, 0, "", "", false));
|
|
|
}
|
|
|
- else
|
|
|
+ else*/
|
|
|
{
|
|
|
EventSystem.Instance.Publish(HPRefresh.Clone(HPRefresh.Index.Boss1 + i, hp * 100f / ZUnit.MaxHP, prop.ServerData.BaseInfo.name, hp.ToString()));
|
|
|
return;
|
|
@@ -242,7 +247,7 @@ public class BattleUnit : BattleObject
|
|
|
});
|
|
|
actionChangeHandler.AddListener(UnitActionStatus.HitMove, stun);
|
|
|
actionChangeHandler.AddListener(UnitActionStatus.Dead, (o) => {
|
|
|
- //OnHPChanged();
|
|
|
+ EventSystem.Instance.Publish(UnitDead.Clone(Id));
|
|
|
});
|
|
|
actionChangeHandler.AddListener(UnitActionStatus.Damage, (o) => { });
|
|
|
actionChangeHandler.AddListener(UnitActionStatus.Pick, (o) => { });
|
|
@@ -260,7 +265,9 @@ public class BattleUnit : BattleObject
|
|
|
actionChangeHandler.AddListener(UnitActionStatus.BreakShield, (o) => { });
|
|
|
actionChangeHandler.AddListener(UnitActionStatus.Transport, (o) => { });
|
|
|
actionChangeHandler.AddListener(UnitActionStatus.Skill, (o) => { });
|
|
|
- actionChangeHandler.AddListener(UnitActionStatus.Rebirth, (o) => { });
|
|
|
+ actionChangeHandler.AddListener(UnitActionStatus.Rebirth, (o) => {
|
|
|
+ EventSystem.Instance.Publish(UnitRebirth.Clone(Id));
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
}
|