4678 【主干】切换到中立地图安全区进入个人boss无法对boss造成伤害
| | |
| | | #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中是否可攻击, 攻击和仇恨判断会调用该函数,判定不可攻击的情况
|