1
This commit is contained in:
parent
750e8dd91e
commit
39fd917c8f
@ -650,6 +650,9 @@ bool Car::CanGetOn(Human* passenger)
|
||||
if (later_removed_) {
|
||||
return false;
|
||||
}
|
||||
if (passenger->HasBuffEffect(kBET_Floating)) {
|
||||
return false;
|
||||
}
|
||||
if (!CanOn(passenger)) {
|
||||
return false;
|
||||
}
|
||||
|
@ -149,6 +149,9 @@ bool HeroAgent::CanShot()
|
||||
|
||||
bool HeroAgent::CanUseSkill(int skill_id)
|
||||
{
|
||||
if (owner_->GetCar()) {
|
||||
return false;
|
||||
}
|
||||
return owner_->CanUseSkill(skill_id);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user