hxp
5 天以前 a0dd1dc92bb2f6eb7067a624df20a9c326ecde87
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillCommon.py
@@ -25,11 +25,8 @@
import ReadChConfig
import random
import BaseAttack
import PetControl
import SkillShell
import DataRecordPack
import ChPyNetSendPack
import NetPackCommon
import ShareDefine
import GameObj
import PassiveBuffEffMng
@@ -1153,7 +1150,7 @@
    elif curObjType == IPY_GameWorld.gotNPC:
        #宠物回血
        if curObj.GetGameNPCObjType() == IPY_GameWorld.gnotPet:
            PetControl.SetPetHP(curObj, remainHP)
            pass
        #普通NPC回血
        else:
            GameObj.SetHP(curObj, remainHP, False) # 先不通知
@@ -1214,7 +1211,7 @@
    if curObjType == IPY_GameWorld.gotNPC:
        #宠物特殊处理
        if curObj.GetGameNPCObjType() == IPY_GameWorld.gnotPet:
            PetControl.SetPetHP(curObj, remainHP)
            pass
        else:
            timeLostHPIpyData = IpyGameDataPY.GetIpyGameDataNotLog("NPCTimeLostHP", curObj.GetNPCID())
            if timeLostHPIpyData:
@@ -1283,8 +1280,6 @@
            AttackCommon.OnPVPDamage(attackerOwner, lostValue, curObj, "SkillLostHP")
        elif curObjType == IPY_GameWorld.gotNPC:
            AttackCommon.NPCAddObjInHurtList(attackerOwner, curObj, curObjHP_BeforeAttack, lostValue)
    #TurnAttack.AddTurnObjHurtValue(buffOwner, curObj, lostValue, lostHP, curSkill)
    
    #统一调用攻击结束动作
    if isDoAttackResult:
@@ -1850,6 +1845,14 @@
    #0通哟  1 PVP类型  2PVE类型  
    return curSkill.GetHurtType() % 10
def GetSkillIDBySkillTypeID(skillTypeID, skillLV=1):
    skillID = skillTypeID + skillLV - 1
    return skillID
def isDamageShieldSkill(skillData):
    ## 是否承伤盾技能
    return skillData.GetAtkType() == ChConfig.BuffAtkType_DamageShield
def isAngerSkill(curSkill):
    ## 是否怒气技能
    return curSkill and curSkill.GetFuncType() == ChConfig.Def_SkillFuncType_AngerSkill
@@ -1858,9 +1861,9 @@
    ## 是否回合普攻技能,区别与无技能的普通A一下,该普攻同样可以有各种技能效果,只是他属于普攻
    return curSkill and curSkill.GetFuncType() == ChConfig.Def_SkillFuncType_TurnNormaSkill
def isAtkbackSkill(curSkill):
    ## 是否反击技能
    return curSkill and curSkill.GetFuncType() == ChConfig.Def_SkillFuncType_AtkbackSkill
def isAttackDirectSkill(curSkill):
    ## 是否直接攻击技能
    return curSkill and not IsBuff(curSkill) and curSkill.GetSkillType() in [ChConfig.Def_SkillType_Atk]
## 检查技能是否为被动技能, 用于控制不可释放技能
def isPassiveSkill(curSkill):
@@ -2075,12 +2078,12 @@
        cureBaseValue = GetCureBaseValue(userObj, curSkill)
    elif cureType == ChConfig.Def_Cure_MaxHP:
        cureBaseValue = GameObj.GetMaxHP(userObj)
    elif cureType == ChConfig.Def_Cure_PNE:
        cureBaseValue = userObj.GetPNE()
        addPer = curSkill.GetEffect(0).GetEffectValue(2)/float(ChConfig.Def_MaxRateValue)
        addExValue = GetCureBaseValue(userObj, curSkill)*addPer
    elif cureType == ChConfig.Def_Cure_PHY:
        cureBaseValue = GameObj.GetMaxHP(userObj)
    #elif cureType == ChConfig.Def_Cure_PNE:
    #    cureBaseValue = userObj.GetPNE()
    #    addPer = curSkill.GetEffect(0).GetEffectValue(2)/float(ChConfig.Def_MaxRateValue)
    #    addExValue = GetCureBaseValue(userObj, curSkill)*addPer
    #elif cureType == ChConfig.Def_Cure_PHY:
    #    cureBaseValue = GameObj.GetMaxHP(userObj)
    elif cureType == ChConfig.Def_Cure_HurtValue:
        cureBaseValue = GameObj.GetLastHurtValue(userObj)
    elif cureType == ChConfig.Def_Cure_TagMaxHP: