mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-05-13 23:11:20 +00:00
CScriptGunTurret: Fix health check in AcceptScriptMsg Damage
This commit is contained in:
parent
ee68e36286
commit
dcdfd58715
@ -279,7 +279,7 @@ void CScriptGunTurret::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case EScriptObjectMessage::Damage: {
|
case EScriptObjectMessage::Damage: {
|
||||||
if (x258_type == ETurretComponent::Gun && GetHealthInfo(mgr)->GetHP() > 0.f) {
|
if (x258_type == ETurretComponent::Gun && GetHealthInfo(mgr)->GetHP() <= 0.f) {
|
||||||
if (const TCastToConstPtr<CGameProjectile> proj = mgr.GetObjectById(uid)) {
|
if (const TCastToConstPtr<CGameProjectile> proj = mgr.GetObjectById(uid)) {
|
||||||
if ((proj->GetAttribField() & EProjectileAttrib::Wave) == EProjectileAttrib::Wave) {
|
if ((proj->GetAttribField() & EProjectileAttrib::Wave) == EProjectileAttrib::Wave) {
|
||||||
x520_state = ETurretState::Frenzy;
|
x520_state = ETurretState::Frenzy;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user