From cb377dffc51158398414ba261ff19bcf87a978ef Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期一, 19 十一月 2018 19:34:56 +0800
Subject: [PATCH] 4767 【1.3】【后端】我要天机改投骰子增加保底

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDiceEx.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDiceEx.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDiceEx.py
index ace558c..824ae88 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDiceEx.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDiceEx.py
@@ -109,6 +109,8 @@
             return
         result = GameWorld.ChangeDataByDigitPlace(result, i, resultNum)
         #GameWorld.DebugLog("    摇骰子结果 resultNum=%s, result=%s" % (resultNum, result))
+    if isChange and str(result).count('6') == 0:
+        result = GameWorld.ChangeDataByDigitPlace(result, 0, 6)
     GameWorld.DebugLog("    摇骰子结果 result=%s,isChange=%s" % (result, isChange))
     PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_Dice_Result, result)
     if result == 666666:

--
Gitblit v1.8.0