Browse Source

mmo-21672:法术的关键帧特效会在同一地点叠加多次导致特效过曝,和服务器确认,屏蔽客户端关键帧特效发送

zhaohua 3 years ago
parent
commit
34b6518102
1 changed files with 12 additions and 12 deletions
  1. 12 12
      Common/CommonAI/ZoneClient/ZoneObject.Spell.cs

+ 12 - 12
Common/CommonAI/ZoneClient/ZoneObject.Spell.cs

@@ -1,4 +1,4 @@
-using CommonAI.RTS;
+using CommonAI.RTS;
 using CommonLang.Vector;
 using CommonAI.Zone;
 using CommonAI.Zone.Helper;
@@ -787,18 +787,18 @@ namespace CommonAI.ZoneClient
         {
             using (var kfs = ListObjectPool<SpellTemplate.KeyFrame>.AllocAutoRelease())
             {
-                int kfs_count = mKeyFrames.PopKeyFrames(PassTimeMS, kfs);
+               // int kfs_count = mKeyFrames.PopKeyFrames(PassTimeMS, kfs);
                 bool is_interval_test = mHitIntervalTicker.Update(Parent.CurrentIntervalMS);
-                if (kfs_count > 0)
-                {
-                    for (int i = 0; i < kfs.Count; i++)
-                    {
-                        if (kfs[i].Effect != null)
-                        {
-                            Parent.PreQueueEvent(new UnitEffectEvent(ObjectID, kfs[i].Effect));
-                        }
-                    }
-                }
+                //if (kfs_count > 0)
+                //{
+                //    for (int i = 0; i < kfs.Count; i++)
+                //    {
+                //        if (kfs[i].Effect != null)
+                //        {
+                //            Parent.PreQueueEvent(new UnitEffectEvent(ObjectID, kfs[i].Effect));
+                //        }
+                //    }
+                //}
                 if (Info.HitOnExplosion)
                 {
                 }