From aae0d35a7993f4c3b2e4e46417248ea97bd518b4 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期四, 15 十一月 2018 10:44:06 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Compose/New/ComposeDogzEquipWin.cs | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/System/Compose/New/ComposeDogzEquipWin.cs b/System/Compose/New/ComposeDogzEquipWin.cs
index e5c918f..6a5e3dc 100644
--- a/System/Compose/New/ComposeDogzEquipWin.cs
+++ b/System/Compose/New/ComposeDogzEquipWin.cs
@@ -297,15 +297,6 @@
private void UpdateThirdType(int thirdType)
{
composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.MountDogz, curSecondType, thirdType, out thirdTypeData);
- if (thirdTypeData != null)
- {
- bool isTrailer = composeWinModel.IsTrailerByLevel(thirdTypeData.itemCompound);
- if (isTrailer)
- {
- MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", thirdTypeData.itemCompound.levelNeed));
- return;
- }
- }
curThirdType = thirdType;
OnClickThirdType();
CreateTypeCell();
@@ -480,6 +471,14 @@
private void OnClickComposeBtn()
{
+ if (compoundModel == null) return;
+
+ bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
+ if (isTrailer)
+ {
+ MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
+ return;
+ }
composeWinModel.SendComposeRequest(compoundModel,fixedItemIndexDict,composeEffect,1);
}
--
Gitblit v1.8.0