mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Fix: monsters did not take damage from fire
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6220 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1932,13 +1932,17 @@ BOOLEAN DishOutGasDamage( SOLDIERTYPE * pSoldier, EXPLOSIVETYPE * pExplosive, IN
|
||||
return( fRecompileMovementCosts );
|
||||
}
|
||||
|
||||
if ( pExplosive->ubType == EXPLOSV_CREATUREGAS || pExplosive->ubType == EXPLOSV_BURNABLEGAS)
|
||||
if ( pExplosive->ubType == EXPLOSV_CREATUREGAS )
|
||||
{
|
||||
if ( pSoldier->flags.uiStatusFlags & SOLDIER_MONSTER )
|
||||
{
|
||||
// unaffected by own gas effects
|
||||
return( fRecompileMovementCosts );
|
||||
}
|
||||
}
|
||||
|
||||
if ( pExplosive->ubType == EXPLOSV_CREATUREGAS || pExplosive->ubType == EXPLOSV_BURNABLEGAS)
|
||||
{
|
||||
if ( sSubsequent && pSoldier->flags.fHitByGasFlags & HIT_BY_CREATUREGAS )
|
||||
{
|
||||
// already affected by creature gas this turn
|
||||
@@ -1949,7 +1953,6 @@ BOOLEAN DishOutGasDamage( SOLDIERTYPE * pSoldier, EXPLOSIVETYPE * pExplosive, IN
|
||||
// already affected by BURNABLEGAS this turn
|
||||
return( fRecompileMovementCosts );
|
||||
}
|
||||
|
||||
}
|
||||
else // no gas mask help from creature attacks
|
||||
// ATE/CJC: gas stuff
|
||||
|
||||
Reference in New Issue
Block a user