Browse Source

修改同时刷多个甜甜圈或能量电池时,中间加入2秒间隔

大爷 1 year ago
parent
commit
e1a012ae7c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      DotNet/Hotfix/Scenes/Game/Handler/R2G_LiveGiftHandler.cs

+ 2 - 0
DotNet/Hotfix/Scenes/Game/Handler/R2G_LiveGiftHandler.cs

@@ -141,6 +141,7 @@ namespace ET.Server
                                 notify.message = BattleNotify.TiktokGift_52_ext.ToString();
                             }
                             notify.TriggerUnits = unitPlayerData.ObjId.ToString();
+                            if(i > 0) await TimerComponent.Instance.WaitAsync(2000);
                             break;
                         case DouyinItem.GiftId_99:
                             // 能量电池
@@ -149,6 +150,7 @@ namespace ET.Server
                             notify.TriggerUnits = unitPlayerData.ObjId.ToString();
                             // 对应的贡献值
                             map.AddContributeValue(request.OpenId, 99);
+                            if (i > 0) await TimerComponent.Instance.WaitAsync(2000);
                             break;
                         case DouyinItem.GiftId_199:
                             // 恶魔炸弹