1
This commit is contained in:
parent
8091c173b0
commit
066dbe4412
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user