From 1e3f8cd83080ab4f140f862b2b2a0e60282b521e Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期四, 30 八月 2018 20:11:31 +0800
Subject: [PATCH] fix:3106 【后端】新增守卫人皇参与奖励

---
 ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamily.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamily.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamily.py
index c2db78e..fe9b667 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamily.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamily.py
@@ -39,6 +39,7 @@
 import PlayerFamilyParty
 import PlayerFamilySWRH
 import PlayerViewCache
+import GameWorldBoss
 import PlayerTalk
 
 import copy
@@ -1363,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()  # 被踢玩家职位
@@ -1437,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()])
     

--
Gitblit v1.8.0