CDrone: GetDamageVulnerability fixes

This commit is contained in:
Luke Street 2020-09-13 19:32:52 -04:00
parent a0d7f126e9
commit 3bf5a6fc83
1 changed files with 2 additions and 1 deletions

View File

@ -327,7 +327,8 @@ bool CDrone::CanRenderUnsorted(const CStateManager& mgr) const {
const CDamageVulnerability* CDrone::GetDamageVulnerability(const zeus::CVector3f&, const zeus::CVector3f& dir, const CDamageVulnerability* CDrone::GetDamageVulnerability(const zeus::CVector3f&, const zeus::CVector3f& dir,
const CDamageInfo&) const { const CDamageInfo&) const {
if (x3fc_flavor == EFlavorType::One && HitShield(-dir)) { if (x3fc_flavor == EFlavorType::One && HitShield(-dir)) {
return &CDamageVulnerability::ImmuneVulnerabilty(); x5e8_shieldTime = 1.f;
return &CDamageVulnerability::ReflectVulnerabilty();
} }
return CAi::GetDamageVulnerability(); return CAi::GetDamageVulnerability();
} }