| | |
| | |
|
| | | if (_targetFight.NpcConfig.IsBoss > 1 && vNetData.KillerID == PlayerDatas.Instance.baseData.PlayerID)
|
| | | {
|
| | | BossFakeLineUtility.Instance.RecordBossKillTime(_targetFight.NpcConfig.NPCID,System.DateTime.Now);
|
| | | BossFakeLineUtility.Instance.RecordBossKillTime(_targetFight.NpcConfig.NPCID, System.DateTime.Now);
|
| | | }
|
| | | }
|
| | |
|
| | | _actor.SetAnimatorSpeed(1);
|
| | | GActorFight _actorFight = _actor as GActorFight;
|
| | |
|
| | | if (_actor is GActorNpcNoFight
|
| | | || !_actor.HasState(GAStaticDefine.State_DeadHash))
|
| | | {
|
| | | GAMgr.Instance.Release(_actor);
|
| | | }
|
| | | else if (_actor is GActorNpcFight)
|
| | | else if (_actor is GActorNpcFight
|
| | | || _actor is GA_NpcFightSgzcZZ)
|
| | | {
|
| | | if (_targetFight != null)
|
| | | if (_actorFight != null)
|
| | | {
|
| | | GA_Hero _hero = PlayerDatas.Instance.hero;
|
| | |
|
| | | if (_hero != null)
|
| | | {
|
| | | if (_hero.SelectTarget != null && _targetFight.ServerInstID == _hero.SelectTarget.ServerInstID)
|
| | | if (_hero.SelectTarget != null && _actorFight.ServerInstID == _hero.SelectTarget.ServerInstID)
|
| | | {
|
| | | SelectionManager.Release(SelectionManager.E_Type.Red);
|
| | | }
|
| | | }
|
| | |
|
| | | if (_targetFight.State == E_ActorState.AutoRun)
|
| | | if (_actorFight.State == E_ActorState.AutoRun)
|
| | | {
|
| | | _targetFight.StopPathFind();
|
| | | _actorFight.StopPathFind();
|
| | | }
|
| | |
|
| | | _targetFight.ActorInfo.serverDie = true;
|
| | | _targetFight.ReleaseName();
|
| | | _targetFight.ReleaseShadow();
|
| | | _targetFight.SkillMgr.Clear();
|
| | | GAMgr.Instance.DoDelayDie(_targetFight);
|
| | | _actorFight.ActorInfo.serverDie = true;
|
| | | _actorFight.ReleaseName();
|
| | | _actorFight.ReleaseShadow();
|
| | | _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
|
| | | {
|
| | | _targetFight.Die();
|
| | | _actorFight.Die();
|
| | | }
|
| | | }
|
| | | }
|