| | |
| | | if not useSkill or useSkill.GetSkillTypeID() == 0:
|
| | | break
|
| | |
|
| | | useSkillTypeID = useSkill.GetSkillTypeID()
|
| | | # 找到可学习的技能
|
| | | learnSkillID = useSkill.GetSkillTypeID() + skillLV
|
| | | learnSkillID = useSkillTypeID + skillLV
|
| | | findSkill = GameWorld.GetGameData().GetSkillBySkillID(learnSkillID)
|
| | | if not findSkill:
|
| | | continue
|
| | | if findSkill.GetSkillTypeID() != useSkillTypeID:
|
| | | # 不是同一个技能
|
| | | continue
|
| | | learnSkillIDList.append(learnSkillID)
|
| | |
|
| | |
| | | # 已广播的不重复
|
| | | GameObj.SetHP(curObj, remainHP, not view)
|
| | |
|
| | | AttackCommon.WriteHurtLog(buffOwner, curObj, curSkill, lostValue, hurtType, "持续掉血")
|
| | | |
| | | if view:
|
| | | #广播伤血类型
|
| | | AttackCommon.ChangeHPView(curObj, buffOwner, skillTypeID, notifyLostValue, hurtType)
|
| | |
| | | AttackCommon.DoLogic_ObjDead(None, curObj, curSkill, tick)
|
| | | return
|
| | |
|
| | |
|
| | | #NPC需要手动添加伤血和仇恨, 因为无调用DoAttack
|
| | | if curObjType == IPY_GameWorld.gotNPC:
|
| | |
|