diff --git a/server/gameserver/android.ai.cc b/server/gameserver/android.ai.cc index 71ee1e6..03005cc 100644 --- a/server/gameserver/android.ai.cc +++ b/server/gameserver/android.ai.cc @@ -11,6 +11,10 @@ 追击 攻击 巡逻 + + 1、当可以攻击的时候攻击 + 2、当可追击时追击 + 3、其他巡逻 */ AndroidAI::~AndroidAI() { diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index d1466b7..5cd2a71 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -914,6 +914,7 @@ void Human::DecHP(float dec_hp, int killer_id, const std::string& killer_name, i if (HasNoDownedTeammate()) { ability.hp = MetaMgr::Instance()->GetSysParamAsInt("downed_recover_hp"); downed = true; + CancelAction(); DoGetDown(); downed_timer = room->xtimer.AddRepeatTimerAndAttach( SERVER_FRAME_RATE,