| | |
| | | continue;
|
| | | }
|
| | | #endif
|
| | | if (_actorList[i] is GA_NpcClientFightNorm)
|
| | | if (_actorList[i] is GA_NpcClientFightNorm
|
| | | || _actorList[i] is GA_NpcFightSgzcZZ)
|
| | | {
|
| | | if (CheckCanAttackTarget(_actorList[i] as GActorFight, skill, _soSkill, skill.targetPosition))
|
| | | {
|
| | |
| | | continue;
|
| | | }
|
| | |
|
| | | if (_target.ActorType == GameObjType.gotNPC)
|
| | | if (_target.ActorType == GameObjType.gotNPC
|
| | | && !(_target is GA_NpcFightSgzcZZ))
|
| | | {
|
| | | GActorNpcFight _npc = _target as GActorNpcFight;
|
| | | if (_npc.NpcConfig.IsBoss != (int)E_MonsterType.Normal)
|
| | |
| | |
|
| | | if (skill.hitClientBattleTargetList.Count > 0)
|
| | | {
|
| | | GA_NpcClientFightNorm _target = null;
|
| | | GActorFight _target = null;
|
| | |
|
| | | for (int i = 0; i < skill.hitClientBattleTargetList.Count; ++i)
|
| | | {
|
| | | _target = GAMgr.Instance.GetByCID(skill.hitClientBattleTargetList[i]) as GA_NpcClientFightNorm;
|
| | | _target = GAMgr.Instance.GetByCID(skill.hitClientBattleTargetList[i]) as GActorFight;
|
| | |
|
| | | AttackHandler.HurtObjs _hurtObject = new AttackHandler.HurtObjs
|
| | | {
|
| | |
| | |
|
| | | AttackHandler.CalculateDamage(m_Hero, _target, skill, i, ref _hurtValue, ref _attackType);
|
| | |
|
| | | if (_target.NpcConfig.NPCID == 1007)
|
| | | {
|
| | | if (_target.ActorInfo.RealHp < _hurtValue)
|
| | | {
|
| | | _hurtValue = (uint)(_target.ActorInfo.RealHp - 10);
|
| | | }
|
| | | }
|
| | | //if (_target.NpcConfig.NPCID == 1007)
|
| | | //{
|
| | | // if (_target.ActorInfo.RealHp < _hurtValue)
|
| | | // {
|
| | | // _hurtValue = (uint)(_target.ActorInfo.RealHp - 10);
|
| | | // }
|
| | | //}
|
| | |
|
| | | _hurtObject.HurtHP = _hurtValue;
|
| | | _hurtObject.AttackType = _attackType;
|
| | |
| | | }
|
| | |
|
| | | // 前期战斗只发送石头人的
|
| | | if (1000 == _target.NpcConfig.NPCID)
|
| | | {
|
| | | CA225_tagCMClientTaskCount _a225 = new CA225_tagCMClientTaskCount
|
| | | {
|
| | | CountID = (uint)_target.NpcConfig.NPCID
|
| | | };
|
| | | GameNetSystem.Instance.SendInfo(_a225);
|
| | | }
|
| | | //if (1000 == _target.NpcConfig.NPCID)
|
| | | //{
|
| | | // CA225_tagCMClientTaskCount _a225 = new CA225_tagCMClientTaskCount
|
| | | // {
|
| | | // CountID = (uint)_target.NpcConfig.NPCID
|
| | | // };
|
| | | // GameNetSystem.Instance.SendInfo(_a225);
|
| | | //}
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | GActorNpcFight _fightNpc = actor as GActorNpcFight;
|
| | | GA_NpcFightSgzcZZ _sgzcRobot = actor as GA_NpcFightSgzcZZ;
|
| | |
|
| | | if (_fightNpc != null)
|
| | | {
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | if (_fightNpc == null)
|
| | | if (_fightNpc == null && _sgzcRobot == null)
|
| | | {
|
| | | //Debug.LogFormat("<color=red>|-- 对象类型不对: {0}</color>", actor.ServerObjID);
|
| | | //Debug.LogFormat(" |-- 目标: {0} 不是战斗npc,不能对其造成伤害", _monster.ServerObjID);
|