This commit is contained in:
aozhiwei 2024-02-18 18:37:17 +08:00
parent 5929d739cc
commit 02d4bf360f
2 changed files with 7 additions and 0 deletions

View File

@ -1695,3 +1695,9 @@ int HeroAgent::GetTodayBattleTimes()
{
return 0;
}
bool HeroAgent::CanAttack()
{
return !(owner_->HasBuffEffect(kBET_Vertigo) ||
owner_->HasBuffEffect(kBET_InWater));
}

View File

@ -103,6 +103,7 @@ public:
float GetCarMaxOil();
bool IsSingleCar();
bool CarHasBuffEffect(int effect_id);
bool CanAttack();
behaviac::EBTStatus RegisterEvents(behaviac::vector<BtEvent_e> events);
behaviac::EBTStatus ClearEvents();