| | |
| | | import GameObj
|
| | | import BuffSkill
|
| | | import PlayerState
|
| | | import MirrorAttack
|
| | | import ChPyNetSendPack
|
| | | import NPCHurtManager
|
| | | import NetPackCommon
|
| | |
| | | 恶意攻击自己的玩家无论什么情况下都可反击,不用切换模式
|
| | | '''
|
| | | #关系有3层,无-友好-敌人
|
| | | |
| | | #镜像PK下,无视PK区域、PK模式等,仅验证双方是否同一阵营
|
| | | curBattleID = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_MirrorBattleID)
|
| | | tagBattleID = tagPlayer.GetDictByKey(ChConfig.Def_PlayerKey_MirrorBattleID)
|
| | | if curBattleID and curBattleID == tagBattleID:
|
| | | battle = MirrorAttack.GetMirrorBattleByID(curBattleID)
|
| | | if battle.batState != ChConfig.Def_MirrorBatState_Fight:
|
| | | return ChConfig.Type_Relation_None, ChConfig.Def_PASysMessage_None
|
| | | if curPlayer.GetFaction() != tagPlayer.GetFaction():
|
| | | return ChConfig.Type_Relation_Enemy , ChConfig.Def_PASysMessage_None
|
| | | return ChConfig.Type_Relation_Friend, ChConfig.Def_PASysMessage_None
|
| | | |
| | | #判断是否可释放(增/减)技能或普攻
|
| | | if CheckPlayersRelationInFB_IsNone(curPlayer, tagPlayer):
|
| | | return ChConfig.Type_Relation_None, ChConfig.Def_PASysMessage_None
|