From e5bbb27fba899bff13e476172dc328cc21c9e6c5 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期四, 21 二月 2019 16:22:38 +0800
Subject: [PATCH] 3021 【1.6】【主干】七日巡礼激活灵宠坐骑成就在活动开启前完成,成就不能完成
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FamilyRobBoss.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FamilyRobBoss.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FamilyRobBoss.py
index f89257c..773a247 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FamilyRobBoss.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FamilyRobBoss.py
@@ -21,6 +21,7 @@
import NetPackCommon
import ChPyNetSendPack
import PlayerActivity
+import PlayerWeekParty
import PlayerControl
import IpyGameDataPY
import SkillCommon
@@ -136,7 +137,6 @@
def OnPlayerHurtFamilyOwnerBoss(curPlayer, curBoss, hurtValue):
## 仙盟玩家对仙盟归属boss造成伤害
- GameWorld.DebugLog("OnPlayerHurtFamilyOwnerBoss hurtValue=%s" % hurtValue)
if hurtValue <= 0:
return
@@ -154,6 +154,7 @@
if NPCCommon.GetDropOwnerType(curBoss) != ChConfig.DropOwnerType_Family:
return
+ GameWorld.DebugLog("OnPlayerHurtFamilyOwnerBoss hurtValue=%s" % hurtValue)
lineID = GameWorld.GetGameWorld().GetLineID()
objID = curBoss.GetID()
bossID = curBoss.GetNPCID()
@@ -200,6 +201,7 @@
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"
--
Gitblit v1.8.0