This commit is contained in:
aozhiwei 2023-10-31 17:38:33 +08:00
parent 1609fc8055
commit 8091c173b0
3 changed files with 4 additions and 3 deletions

View File

@ -48,7 +48,7 @@
</node>
<node class="ReferencedBehavior" id="2">
<property ReferenceBehavior="const string &quot;task/MobaMode&quot;" />
<property Task="Self.HeroAgent::MobaMode(0,0,{x=0;y=0;z=0;})" />
<property Task="Self.HeroAgent::MobaMode(0,0)" />
</node>
<node class="ReferencedBehavior" id="3">
<property ReferenceBehavior="const string &quot;task/ChiJiMode&quot;" />

View File

@ -5,7 +5,6 @@
<pars>
<par name="_$local_task_param_$_0" type="int" value="0" />
<par name="_$local_task_param_$_1" type="int" value="0" />
<par name="_$local_task_param_$_2" type="glm::vec3" value="{x=0;y=0;z=0;}" />
</pars>
<node class="Task" id="0">
<property Prototype="Self.HeroAgent::MobaMode(0,0)" />

View File

@ -1088,5 +1088,7 @@ int HeroAgent::GetReviveCount()
behaviac::EBTStatus HeroAgent::CoGetNextMobaModeRoadPoint()
{
return behaviac::BT_FAILURE;
if (!GetRoom()->IsMobaModeRoom()) {
return behaviac::BT_FAILURE;
}
}