Skip to content

Commit a2cebd8

Browse files
authored
bugfix(module): Fix damage calculation for determining the initial death of GLA Battle Bus (#1603)
1 parent 1875dbf commit a2cebd8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Body/UndeadBody.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,12 @@ void UndeadBody::attemptDamage( DamageInfo *damageInfo )
8181

8282
if( damageInfo->in.m_damageType != DAMAGE_UNRESISTABLE
8383
&& !m_isSecondLife
84+
#if RETAIL_COMPATIBLE_CRC
8485
&& damageInfo->in.m_amount >= getHealth()
86+
#else
87+
// TheSuperHackers @bugfix Stubbjax 20/09/2025 Battle Buses now correctly apply damage modifiers when calculating lethal damage
88+
&& estimateDamage(damageInfo->in) >= getHealth()
89+
#endif
8590
&& IsHealthDamagingDamage(damageInfo->in.m_damageType)
8691
)
8792
{

0 commit comments

Comments
 (0)