summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2020-03-29 21:46:22 +0200
committerPaweł Redman <pawel.redman@gmail.com>2020-03-29 21:58:10 +0200
commitb684f478ba3c55a21d132350f4e3e345ec6f9c6d (patch)
treeeb3cbf8d80b4fe95c0e41f89e45233cca3ca3835
parentc708d91dbfd691b965e1d5fb06cf6f95e3673000 (diff)
Don't interrupt alien healing with Covid damage
-rw-r--r--src/game/g_combat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c
index 4df883c..e4c3bba 100644
--- a/src/game/g_combat.c
+++ b/src/game/g_combat.c
@@ -1489,7 +1489,8 @@ void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker,
if( targ->client )
targ->client->ps.stats[ STAT_HEALTH ] = targ->health;
- targ->lastDamageTime = level.time;
+ if( mod != MOD_CORONAVIRUS )
+ targ->lastDamageTime = level.time;
targ->lastDamageMOD = mod;
//TA: add to the attackers "account" on the target