Browse Source

MMO-20399:【攻击模式】对方切换攻击所有人模式打我之后对方血条显示绿色,人多的时候无法分辨是谁打的

lvlh 3 years ago
parent
commit
6c846e1cf9

+ 7 - 0
XmdsCommon/ZoneClient/XmdsClientVirtual/XmdsClientVirtual_Player.cs

@@ -1,4 +1,5 @@
 using CommonAI.Data;
+using CommonAI.Zone;
 using CommonAI.ZoneClient;
 using System.Collections.Generic;
 using XmdsCommon.Message;
@@ -10,6 +11,7 @@ namespace XmdsCommon.ZoneClient.XmdsClientVirtual
     {
         public delegate void OnStatusChange();
         public event OnStatusChange OnUnitLvChange;
+        public event OnStatusChange OnPKModeChange;
 
         protected PlayerVisibleDataB2C mData = null;
         protected string mPlayerUUID = null;
@@ -66,6 +68,11 @@ namespace XmdsCommon.ZoneClient.XmdsClientVirtual
                 var evt = e as TestamentChangeEventB2C;
                 mData.BaseInfo.Testament = evt.TestamentID;
             }
+            else if (e is PlayerPKModeChangeEventB2C)
+            {
+                PlayerPKModeChangeEventB2C evt = e as PlayerPKModeChangeEventB2C;
+                mData.UnitPKInfo.CurPKMode = evt.CurMode;
+            }
 
             base.MOwner_OnDoEvent(obj, e);
         }