1
This commit is contained in:
parent
750e8dd91e
commit
39fd917c8f
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user