|
@@ -80,7 +80,7 @@ namespace CommonAI.Zone.Instance
|
|
private float __mControledTimeAdd;
|
|
private float __mControledTimeAdd;
|
|
|
|
|
|
|
|
|
|
- private long mDeadTime = 0;
|
|
+ public long mDeadTime = 0;
|
|
|
|
|
|
|
|
|
|
public int gameServerFlag = 0;
|
|
public int gameServerFlag = 0;
|
|
@@ -487,10 +487,7 @@ namespace CommonAI.Zone.Instance
|
|
if (IsDead() && (!IsStateDead))
|
|
if (IsDead() && (!IsStateDead))
|
|
{
|
|
{
|
|
changeState(new StateDead(this, this, false), true);
|
|
changeState(new StateDead(this, this, false), true);
|
|
- if (this.IsPlayer)
|
|
+ log.Warn("额外调用死亡逻辑:" + this.PlayerUUID + ", " + this.mZone.GetSceneID() + ", " + this.Info.ID);
|
|
- {
|
|
|
|
- log.Warn("额外调用死亡逻辑:" + this.PlayerUUID);
|
|
|
|
- }
|
|
|
|
|
|
|
|
Parent.cb_unitDeadCallBack(this, this);
|
|
Parent.cb_unitDeadCallBack(this, this);
|
|
queueEvent(new UnitDeadEvent(ID, this.ID, false, mInfo.RebirthTimeMS));
|
|
queueEvent(new UnitDeadEvent(ID, this.ID, false, mInfo.RebirthTimeMS));
|
|
@@ -844,23 +841,6 @@ namespace CommonAI.Zone.Instance
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- if (this.mProcessDeadCallbackTime > CommonLang.CUtils.localTimeMS)
|
|
|
|
- {
|
|
|
|
- log.Warn("cb_unitDeadCallBack 跳过:" + this.mProcessDeadCallbackTime + ", " + this.Parent.GetSceneID() + ", ID:" + this.Info.ID + ", " + this.PlayerUUID);
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (this.IsMonster && this.Virtual.GetMaType() >= 4 && this.Level > 80)
|
|
|
|
- {
|
|
|
|
- log.Info("boss死亡:" + this.Parent.GetSceneID() + ", 单位id=" + this.Info.ID + ", 处理死亡时间:" + this.mProcessDeadCallbackTime
|
|
|
|
- + ", SceneUID: " + this.mZone.UUID + ", " + (attacker == null ? "null" : attacker.PlayerUUID));
|
|
|
|
-
|
|
|
|
- if (attacker.IsPlayerUnit)
|
|
|
|
- {
|
|
|
|
- JSGHackerModule.OnPlayerKillMonster(attacker, this);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
mDeadTime = Parent.PassTimeMS;
|
|
mDeadTime = Parent.PassTimeMS;
|
|
onDead(attacker);
|
|
onDead(attacker);
|
|
Parent.cb_unitDeadCallBack(this, attacker);
|
|
Parent.cb_unitDeadCallBack(this, attacker);
|
|
@@ -1264,6 +1244,7 @@ namespace CommonAI.Zone.Instance
|
|
if (IsDead())
|
|
if (IsDead())
|
|
{
|
|
{
|
|
|
|
|
|
|
|
+ this.mProcessDeadCallbackTime = 0;
|
|
return changeState(new StateRebirth(this, max_hp, max_mp));
|
|
return changeState(new StateRebirth(this, max_hp, max_mp));
|
|
}
|
|
}
|
|
return false;
|
|
return false;
|