| | |
| | | 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:
|
| | |
| | | #0通哟 1 PVP类型 2PVE类型
|
| | | return curSkill.GetHurtType() % 10
|
| | |
|
| | | def isDamageShieldSkill(skillData):
|
| | | ## 是否承伤盾技能
|
| | | return skillData.GetAtkType() == ChConfig.BuffAtkType_DamageShield
|
| | |
|
| | | def isAngerSkill(curSkill):
|
| | | ## 是否怒气技能
|
| | | return curSkill and curSkill.GetFuncType() == ChConfig.Def_SkillFuncType_AngerSkill
|
| | |
| | | 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:
|