From 16a709effc48a9a6d2c74eeccd5702ec3654734d Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期一, 03 十二月 2018 17:09:55 +0800
Subject: [PATCH] 2534 【1.3.100】守卫人皇朝向错误 战斗类型朝向特殊处理
---
Fight/GameActor/GA_NpcFightNorm.cs | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/Fight/GameActor/GA_NpcFightNorm.cs b/Fight/GameActor/GA_NpcFightNorm.cs
index ff6e5de..7d78e71 100644
--- a/Fight/GameActor/GA_NpcFightNorm.cs
+++ b/Fight/GameActor/GA_NpcFightNorm.cs
@@ -60,8 +60,18 @@
AdjustPos(_h0406.PosX, _h0406.PosY);
}
- // 鎴樻枟绫诲瀷鐨勬�墿闅忔満鏈濆悜
- Rotation = Quaternion.Euler(0, UnityEngine.Random.Range(0, 360), 0);
+ GAStaticDefine.NPCLocation _npcLocation;
+ if ((NpcConfig.NPCID == 31704001
+ || NpcConfig.NPCID == 31704002
+ || NpcConfig.NPCID == 31704003)
+ && GAStaticDefine.TryGetMapNPCLocation(NpcConfig.NPCID, out _npcLocation))
+ {
+ Rotation = MathUtility.GetClientRotationFromAngle(_npcLocation.face);
+ }
+ else
+ {
+ Rotation = Quaternion.Euler(0, UnityEngine.Random.Range(0, 360), 0);
+ }
base.OnInit(package);
}
--
Gitblit v1.8.0