From 4f4fa813f0f485ef27d5e097aa7d437f44f334f9 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期三, 23 一月 2019 17:11:58 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
Fight/Actor/UserInputHandler.cs | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/Fight/Actor/UserInputHandler.cs b/Fight/Actor/UserInputHandler.cs
index 8c7428c..0681ff0 100644
--- a/Fight/Actor/UserInputHandler.cs
+++ b/Fight/Actor/UserInputHandler.cs
@@ -278,6 +278,7 @@
_hero.Run();
_hero.State = E_ActorState.CtrlRun;
+ _hero.Behaviour.StopKillUntilDieAI();
}
}
}
@@ -296,13 +297,17 @@
GA_Hero _hero = PlayerDatas.Instance.hero;
- if ((StatusMgr.IsValid()
- && StatusMgr.Instance.CanMove(PlayerDatas.Instance.PlayerId)))
+ if (_hero != null)
{
- if (_hero != null
- && _hero.State == E_ActorState.AutoRun)
+ _hero.Behaviour.StopKillUntilDieAI();
+
+ if ((StatusMgr.IsValid()
+ && StatusMgr.Instance.CanMove(PlayerDatas.Instance.PlayerId)))
{
- _hero.StopPathFind();
+ if (_hero.State == E_ActorState.AutoRun)
+ {
+ _hero.StopPathFind();
+ }
}
}
}
--
Gitblit v1.8.0