4678 【主干】切换到中立地图安全区进入个人boss无法对boss造成伤害
1个文件已修改
4 ■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py
@@ -821,8 +821,10 @@
    #if not CheckCanAttackNPCByLV(attacker, defender):
    #    return False
    
    isWoodPile = True if (defObjType == IPY_GameWorld.gotNPC and defender.GetType() in [ChConfig.ntPriWoodPilePVE, ChConfig.ntPriWoodPilePVP]) \
        or (atkObjType == IPY_GameWorld.gotNPC and attacker.GetType() in [ChConfig.ntPriWoodPilePVE, ChConfig.ntPriWoodPilePVP]) else False
    #不可攻击区域
    if not CheckCanAtkByArea(attacker, defender):
    if not isWoodPile and not CheckCanAtkByArea(attacker, defender):
        return False
    #验证FB中是否可攻击, 攻击和仇恨判断会调用该函数,判定不可攻击的情况