This commit is contained in:
aozhiwei 2021-07-06 12:18:56 +00:00
parent 5d5a9b44a0
commit 0e15e58980

View File

@ -381,7 +381,7 @@ void Car::SetAttackDir(const a8::Vec2& attack_dir)
void Car::DecOil(float dec_oil)
{
dec_oil *= 1 + GetAbility()->GetAttrRate(kHAT_CarOil);
dec_oil *= 1 - GetAbility()->GetAttrRate(kHAT_CarOil);
cur_oil_ -= dec_oil;
cur_oil_ = std::max(0.0f, cur_oil_);
if (!HasOil()) {