From d21ceed16228ad4cd1c8e01d2c031388af1acf39 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期三, 17 四月 2019 11:27:58 +0800
Subject: [PATCH] 3335 缥缈仙域
---
System/HazyRegion/HazyDemonKingModel.cs | 23 ++++++++++++++++++++++-
1 files changed, 22 insertions(+), 1 deletions(-)
diff --git a/System/HazyRegion/HazyDemonKingModel.cs b/System/HazyRegion/HazyDemonKingModel.cs
index 6526af4..b5b15a8 100644
--- a/System/HazyRegion/HazyDemonKingModel.cs
+++ b/System/HazyRegion/HazyDemonKingModel.cs
@@ -193,7 +193,16 @@
public void SendSelectAtkTarget(uint serverInstId)
{
-
+ var actor = GAMgr.Instance.GetBySID(serverInstId);
+ if (actor != null)
+ {
+ var hero = PlayerDatas.Instance.hero;
+ if (hero != null)
+ {
+ hero.LockTarget = actor;
+ hero.SelectTarget = actor;
+ }
+ }
}
public uint GetPlayerAtkTarget(uint serverInstId)
@@ -202,6 +211,18 @@
{
return ClientHazyDemonKingStage.GetClientBossSid();
}
+ if (serverInstId == PlayerDatas.Instance.PlayerId)
+ {
+ var hero = PlayerDatas.Instance.hero;
+ if (hero != null)
+ {
+ return hero.SelectTarget.ServerInstID;
+ }
+ }
+ else
+ {
+
+ }
return 0;
}
--
Gitblit v1.8.0