Skip to content

Commit d16e35f

Browse files
committed
bugfix: Battle Bus now correctly applies damage modifiers when determining initial death
1 parent 783bdb7 commit d16e35f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ 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+
&& estimateDamage(damageInfo->in) >= getHealth()
88+
#endif
8589
&& IsHealthDamagingDamage(damageInfo->in.m_damageType)
8690
)
8791
{

0 commit comments

Comments
 (0)