Browse Source

修改bug

lzx 1 day ago
parent
commit
dfd954b829
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Assets/Scripts/GameUI/UI/DaoYouPanel/DaoYouInfoPanel.cs

+ 2 - 2
Assets/Scripts/GameUI/UI/DaoYouPanel/DaoYouInfoPanel.cs

@@ -144,7 +144,7 @@ namespace Fort23.Mono
                 if (widgetItem1 != null && daoyouGiftConfig.ID != 0)
                 if (widgetItem1 != null && daoyouGiftConfig.ID != 0)
                 {
                 {
                     //TODO 消耗:送礼给道友
                     //TODO 消耗:送礼给道友
-                   if (PlayerManager.Instance.BagController.DeductItem(daoyouGiftConfig.ItemID, count))
+                   if (!PlayerManager.Instance.BagController.DeductItem(daoyouGiftConfig.ItemID, count))
                    {
                    {
                        TipMessagePanel.OpenTipMessagePanel(10324);
                        TipMessagePanel.OpenTipMessagePanel(10324);
                        return;
                        return;
@@ -205,7 +205,7 @@ namespace Fort23.Mono
                     }
                     }
 
 
                     //TODO 消耗:送礼给道友
                     //TODO 消耗:送礼给道友
-                    if (PlayerManager.Instance.BagController.DeductItem(widgetItem1.itemInfo.itemID, count))
+                    if (!PlayerManager.Instance.BagController.DeductItem(widgetItem1.itemInfo.itemID, count))
                     {
                     {
                         TipMessagePanel.OpenTipMessagePanel(10324);
                         TipMessagePanel.OpenTipMessagePanel(10324);
                         return;
                         return;