hxp
2019-05-11 7ae9db7a15248cdc6dff8970b55b2efb424d8b5a
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/Player_Attack_SummonNPC.py
@@ -70,6 +70,12 @@
        #怪物的召唤兽,不考虑攻击模式问题
        return ChConfig.Type_Relation_Enemy , ChConfig.Def_PASysMessage_None
    
    #私有木桩只能自己打自己的
    if curTagSummonNPC.GetType() in [ChConfig.ntPriWoodPilePVE, ChConfig.ntPriWoodPilePVP]:
        if not GameWorld.IsSameObj(curPlayer, curTagPlayer):
            return ChConfig.Type_Relation_Friend , ChConfig.Def_PASysMessage_None
        return ChConfig.Type_Relation_Enemy , ChConfig.Def_PASysMessage_None
    #自己的召唤兽,不能攻击
    if GameWorld.IsSameObj(curPlayer, curTagPlayer) :
        return ChConfig.Type_Relation_Friend , ChConfig.Def_PASysMessage_None
@@ -94,7 +100,6 @@
#  @return hurtType : HurtType 伤害结构体类 
#  @remarks 攻击
def DoAttack(curPlayer, curTagSummon, skill, skillValue, skillPercent, skillHurtList, tick):
    #finalHurtPer = SkillCommon.GetSkillFinalHurtPer(curPlayer, curTagSummon, skill, tick)
    
    #攻击前血量
    curTagSummonBeHP = GameObj.GetHP(curTagSummon)