From b2aa714eafbfd5e7e04ac09d1368231701bbcf71 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期四, 30 八月 2018 14:44:44 +0800
Subject: [PATCH] fix: 3007 超值礼包购买调整
---
ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamily.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamily.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamily.py
index aeca269..fe9b667 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamily.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamily.py
@@ -38,6 +38,8 @@
import PlayerCompensation
import PlayerFamilyParty
import PlayerFamilySWRH
+import PlayerViewCache
+import GameWorldBoss
import PlayerTalk
import copy
@@ -1362,6 +1364,10 @@
PlayerControl.NotifyCode(curPlayer, "DungeonGuardSkyText2")
return
+ if GameWorld.GetGameWorld().GetDictByKey(ShareDefine.Def_Notify_WorldKey_DailyActionState % ShareDefine.DailyActionID_FamilyRobBoss):
+ PlayerControl.NotifyCode(curPlayer, "FairyGrabBossExitError")
+ return
+
tagPlayerName = curTagMember.GetName() # 被踢玩家名
tagPlayerID = curTagMember.GetPlayerID() # 被踢玩家ID
tagFamilyLV = curTagMember.GetFamilyLV() # 被踢玩家职位
@@ -1436,6 +1442,11 @@
if PlayerFamilySWRH.IsInFamilySWRH():
PlayerControl.NotifyCode(curPlayer, "DungeonGuardSkyText1")
return
+
+ if GameWorld.GetGameWorld().GetDictByKey(ShareDefine.Def_Notify_WorldKey_DailyActionState % ShareDefine.DailyActionID_FamilyRobBoss):
+ PlayerControl.NotifyCode(curPlayer, "FairyGrabBossExitError")
+ return
+
#XW_JZ_LeaveFamily <n color="0,190,255">{%S1%}</n><n color="255,255,0">退出了家族!</n> 25 - -
NotifyAllFamilyMemberMsg(curFamily, curPlayer, "XW_JZ_LeaveFamily", [curPlayer.GetName()])
@@ -1470,6 +1481,7 @@
# 玩家战盟名变更处理
__OnFamilyNameChange(leavePlayerID, '')
AddFamilyIDToFightPowerChangeList(curFamily.GetID())
+ PlayerViewCache.OnPlayerLeaveFamily(leavePlayerID)
return
#//////////////////////////////////////////////////////////////
--
Gitblit v1.8.0