|  |  |  | 
|---|
|  |  |  | import NetPackCommon | 
|---|
|  |  |  | import ChPyNetSendPack | 
|---|
|  |  |  | import PlayerActivity | 
|---|
|  |  |  | import PlayerWeekParty | 
|---|
|  |  |  | import PlayerControl | 
|---|
|  |  |  | import IpyGameDataPY | 
|---|
|  |  |  | import SkillCommon | 
|---|
|  |  |  | 
|---|
|  |  |  | def OnPlayerHurtFamilyOwnerBoss(curPlayer, curBoss, hurtValue): | 
|---|
|  |  |  | ## 仙盟玩家对仙盟归属boss造成伤害 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | GameWorld.DebugLog("OnPlayerHurtFamilyOwnerBoss hurtValue=%s" % hurtValue) | 
|---|
|  |  |  | if hurtValue <= 0: | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | if NPCCommon.GetDropOwnerType(curBoss) != ChConfig.DropOwnerType_Family: | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | GameWorld.DebugLog("OnPlayerHurtFamilyOwnerBoss hurtValue=%s" % hurtValue) | 
|---|
|  |  |  | lineID = GameWorld.GetGameWorld().GetLineID() | 
|---|
|  |  |  | objID = curBoss.GetID() | 
|---|
|  |  |  | bossID = curBoss.GetNPCID() | 
|---|
|  |  |  | 
|---|
|  |  |  | if hurtType == FamilyHurtObjType_Player and hurtObj.hurtValue == 0 and hurtValue: | 
|---|
|  |  |  | if IsHorsePetRobBoss(curBoss.GetNPCID()): | 
|---|
|  |  |  | PlayerActivity.AddDailyActionFinishCnt(curPlayer, ShareDefine.DailyActionID_FamilyRobBoss) | 
|---|
|  |  |  | PlayerWeekParty.AddWeekPartyActionCnt(curPlayer, ChConfig.Def_WPAct_FamilyRobBoss, 1) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | hurtObj.hurtValue += hurtValue | 
|---|
|  |  |  | GameWorld.DebugLog("    更新伤血%s: hurtType=%s,hurtID=%s,hurtValue=%s" | 
|---|
|  |  |  | 
|---|
|  |  |  | break | 
|---|
|  |  |  | if batchPlayerIDList: | 
|---|
|  |  |  | PlayerControl.SendMailBatch("FairyGrabBoss2", batchPlayerIDList, batchAddItemList, batchParamList, batchDetail=batchDetailList) | 
|---|
|  |  |  | orderPlayerName = ShareDefine.Def_Space.join(orderPlayerNameList) | 
|---|
|  |  |  | PlayerControl.WorldNotify(0, "FairyGrabBossRank", [orderPlayerName, bossID]) | 
|---|
|  |  |  | for order, orderPlayerName in enumerate(orderPlayerNameList, 1): | 
|---|
|  |  |  | PlayerControl.WorldNotify(0, "FairyGrabBossRank", [orderPlayerName, bossID, order]) | 
|---|
|  |  |  | if order >= 3: | 
|---|
|  |  |  | break | 
|---|
|  |  |  |  | 
|---|
|  |  |  | # 参与仙盟历史伤血奖励, 算历史伤血 | 
|---|
|  |  |  | joinAwardNeedHurtHPPer = IpyGameDataPY.GetFuncCfg("FairyGrabBoss", 2) | 
|---|