From da703bbc7bc857362753504d9b82ce8d2250a9b6 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期五, 15 三月 2019 16:32:02 +0800
Subject: [PATCH] 6307 【后端】【2.0】多套装备开发单(外观设置修改)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChEquip.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChEquip.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChEquip.py
index 3c06775..85ceb23 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChEquip.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChEquip.py
@@ -858,9 +858,10 @@
     curPlayer.SetTickByType(ChConfig.TYPE_Player_Tick_RequestEquipShowHide, tick)
     sendPack = IPY_GameWorld.IPY_CRequestEquipShowHide()
     classLV = sendPack.GetEquipShowSwitch()
-    if not ChangeEquipfacadeByClassLV(curPlayer, classLV):
+    oldClassLV = GetEquipFacadeClassLV(curPlayer)
+    if oldClassLV == classLV:
         return
-    if curPlayer.GetEquipShowSwitch()/10 == classLV:
+    if not ChangeEquipfacadeByClassLV(curPlayer, classLV):
         return
     
     #通知外观装备
@@ -874,6 +875,7 @@
         gridIndex = ipyData.GetGridIndex()
         updFaceEquipIndex = updFaceEquipIndex * 1000 + gridIndex
         equipIndexList.append(gridIndex)
+
     PlayerControl.SetFaceEquipIndex(curPlayer, updFaceEquipIndex)
     equipPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptEquip)
     for equipPackIndex in equipIndexList:

--
Gitblit v1.8.0