| | |
| | | if relation[0] == ChConfig.Type_Relation_Enemy :
|
| | | return True
|
| | |
|
| | | AttackCommon.PlayerAttackFailSysMessanage(curPlayer, relation[1])
|
| | | if curSkill.GetFuncType() == ChConfig.Def_SkillFuncType_FbSkill:
|
| | | AttackCommon.PlayerAttackFailSysMessanage(curPlayer, relation[1])
|
| | | return False
|
| | |
|
| | | ##玩家释放有目标技能, 检查目标对象是否符合要求, 可攻击怪物
|
| | |
| | | if relation[0] == ChConfig.Type_Relation_Friend :
|
| | | return True
|
| | |
|
| | | AttackCommon.PlayerAttackFailSysMessanage(curPlayer, relation[1])
|
| | | if curSkill.GetFuncType() == ChConfig.Def_SkillFuncType_FbSkill:
|
| | | AttackCommon.PlayerAttackFailSysMessanage(curPlayer, relation[1])
|
| | | return False
|
| | |
|
| | | #---------------------------------------------------------------------
|
| | |
| | |
|
| | | if skillAim == ChConfig.Def_UseSkillAim_None:
|
| | | if curSkill.GetSkillType() in ChConfig.Def_CanAttackSkill_List:
|
| | | if target and target.GetGameObjType() == IPY_GameWorld.gotNPC and target.GetGameNPCObjType() == IPY_GameWorld.gnotSummon:
|
| | | owner = NPCCommon.GetNpcObjOwnerDetail(target)
|
| | | if owner and owner.GetID() == attacker.GetID():
|
| | | # 有害技能特殊处理,不能对自己的召唤物释放
|
| | | target = None
|
| | | |
| | | result = DoLogic_UseSkill(attacker, target, curSkill, tick, attacker.GetPosX(), attacker.GetPosY(), isEnhanceSkill=isEnhanceSkill)
|
| | | else:
|
| | | result = DoLogic_UseSkill(attacker, attacker, curSkill, tick, isEnhanceSkill=isEnhanceSkill)
|