Pārlūkot izejas kodu

屏蔽CommonAI层对“PlayerFocuseTargetEvent”消息的处理

大爷 1 gadu atpakaļ
vecāks
revīzija
c73c6424f2
1 mainītis faili ar 3 papildinājumiem un 7 dzēšanām
  1. 3 7
      Common/CommonAI/ZoneClient/ZoneObject.Player.cs

+ 3 - 7
Common/CommonAI/ZoneClient/ZoneObject.Player.cs

@@ -100,7 +100,7 @@ namespace CommonAI.ZoneClient
             this.clearAgents();
             this.clearSkillAction();
             base.Disposing();
-            this.mOnGuardFocusTarget = null;
+            //this.mOnGuardFocusTarget = null;
         }
         public override void InitSkills()
         {
@@ -157,10 +157,6 @@ namespace CommonAI.ZoneClient
             {
                 DoUseItem(e as UnitUseItemEvent);
             }
-            else if (e is PlayerFocuseTargetEvent)
-            {
-                DoPlayerFocuseTargetEvent(e as PlayerFocuseTargetEvent);
-            }
 
             if (e is UnitForceSyncPosEvent &&
                 mCurrentSkillAction is PreSkillByClient)
@@ -2345,7 +2341,7 @@ namespace CommonAI.ZoneClient
 
         //--------------------------------------------------------------------------------------------------------
 
-        private void DoPlayerFocuseTargetEvent(PlayerFocuseTargetEvent e)
+        /*private void DoPlayerFocuseTargetEvent(PlayerFocuseTargetEvent e)
         {
             if (this.TargetUnitID != e.targetUnitID)
             {
@@ -2370,7 +2366,7 @@ namespace CommonAI.ZoneClient
         public delegate void OnGuardFocusTargetHandler(ZoneActor actor, ZoneObject target, SkillTemplate.CastTarget expect);
 
         [EventTriggerDescAttribute("单位持有技能发生变化时触发")]
-        public event OnGuardFocusTargetHandler OnGuardFocusTarget { add { mOnGuardFocusTarget += value; } remove { mOnGuardFocusTarget -= value; } }
+        public event OnGuardFocusTargetHandler OnGuardFocusTarget { add { mOnGuardFocusTarget += value; } remove { mOnGuardFocusTarget -= value; } }*/