Browse Source

修改bug

lzx 1 month ago
parent
commit
c22fbaf174
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Assets/Scripts/GameLogic/RedDot/RedDotManager.cs

+ 1 - 1
Assets/Scripts/GameLogic/RedDot/RedDotManager.cs

@@ -350,7 +350,7 @@ public class RedDotManager : Singleton<RedDotManager>
 
         int count = skillConstant.SkillPromoteNeedPieceNum[_skillInfo.skillConfig.level - 1];
 
-        if (!PlayerManager.Instance.BagController.DeductItem(_skillInfo.skillConfig.PieceID, count))
+        if (!PlayerManager.Instance.BagController.IsEnough(_skillInfo.skillConfig.PieceID, count))
         {
             return false;
         }