This commit is contained in:
aozhiwei 2023-11-15 14:58:44 +08:00
parent 750e8dd91e
commit 39fd917c8f
2 changed files with 6 additions and 0 deletions

View File

@ -650,6 +650,9 @@ bool Car::CanGetOn(Human* passenger)
if (later_removed_) { if (later_removed_) {
return false; return false;
} }
if (passenger->HasBuffEffect(kBET_Floating)) {
return false;
}
if (!CanOn(passenger)) { if (!CanOn(passenger)) {
return false; return false;
} }

View File

@ -149,6 +149,9 @@ bool HeroAgent::CanShot()
bool HeroAgent::CanUseSkill(int skill_id) bool HeroAgent::CanUseSkill(int skill_id)
{ {
if (owner_->GetCar()) {
return false;
}
return owner_->CanUseSkill(skill_id); return owner_->CanUseSkill(skill_id);
} }