This commit is contained in:
aozhiwei 2023-10-31 18:05:41 +08:00
parent 8091c173b0
commit 066dbe4412
2 changed files with 8 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#include "mt/Hero.h"
#include "mt/Equip.h"
#include "mt/Skill.h"
#include "mt/Map.h"
#include "behaviac_generated/types/internal/behaviac_customized_types.h"
@ -1091,4 +1092,10 @@ behaviac::EBTStatus HeroAgent::CoGetNextMobaModeRoadPoint()
if (!GetRoom()->IsMobaModeRoom()) {
return behaviac::BT_FAILURE;
}
auto& road = GetRoom()->GetMapMeta()->moba_path_points.at(owner_->road_idx);
if (owner_->point_idx < road.size()) {
out_point0 = std::get<0>(road.at(owner_->point_idx))->pos;
} else {
}
return behaviac::BT_SUCCESS;
}

View File

@ -3428,6 +3428,7 @@ void Human::InternalBeKill(int killer_id, const std::string& killer_name, int we
SetPos(born_point->RandPoint(room));
room->grid_service->MoveCreature(this);
Global::Instance()->verify_set_pos = 0;
GetMovement()->ClearPath();
a8::UnSetBitFlag(status, CS_Reviving);
++stats->revive;
dead = false;