| | |
| | | }
|
| | |
|
| | | GActorNpcFight _targetFight = _actor as GActorNpcFight;
|
| | |
|
| | | GActorFight _actorFight = _actor as GActorFight;
|
| | | if (_targetFight != null)
|
| | | {
|
| | | if (MapTransferUtility.Instance.lastMoveToWorldBossNpcID == _targetFight.NpcConfig.NPCID)
|
| | |
| | | {
|
| | | GAMgr.Instance.Release(_actor);
|
| | | }
|
| | | else if (_actor is GActorNpcFight
|
| | | || _actor is GA_NpcFightSgzcZZ)
|
| | | else if (_actorFight is GActorNpcFight
|
| | | || _actorFight is GA_NpcFightSgzcZZ)
|
| | | {
|
| | | if (_actor != null)
|
| | | if (_actorFight != null)
|
| | | {
|
| | |
|
| | | if (_hero != null)
|
| | |
| | | _actor.ActorInfo.serverDie = true;
|
| | | _actor.ReleaseName();
|
| | | _actor.ReleaseShadow();
|
| | | _targetFight.SkillMgr.Clear();
|
| | | GAMgr.Instance.DoDelayDie(_targetFight);
|
| | | _actorFight.SkillMgr.Clear();
|
| | | GAMgr.Instance.DoDelayDie(_actorFight);
|
| | |
|
| | | GActorFight _killer = GAMgr.Instance.GetBySID(vNetData.KillerID) as GActorFight;
|
| | |
|
| | |
| | |
|
| | | if (_transToMainUser)
|
| | | {
|
| | | _targetFight.Die(vNetData.KillerID / 10);
|
| | | _actorFight.Die(vNetData.KillerID / 10);
|
| | | }
|
| | | else
|
| | | {
|
| | | _targetFight.Die(vNetData.KillerID);
|
| | | _actorFight.Die(vNetData.KillerID);
|
| | | }
|
| | | }
|
| | | else
|
| | |
| | | _content = string.Format("DTC0608_tagNPCDie => {0} 死亡的时候凶手: {1} 已经将招式: {2} 演示完毕, 这里直接死亡.", vNetData.ObjID, vNetData.KillerID, vNetData.Reason);
|
| | | RuntimeLogUtility.AddLog_Red(_content, (uint)vNetData.ObjID);
|
| | | #endif
|
| | | _targetFight.Die(vNetData.KillerID);
|
| | | _actorFight.Die(vNetData.KillerID);
|
| | |
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | _targetFight.Die(vNetData.KillerID);
|
| | | _actorFight.Die(vNetData.KillerID);
|
| | | }
|
| | | }
|
| | | else
|