diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2020-03-29 21:46:22 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2020-03-29 21:58:10 +0200 |
commit | b684f478ba3c55a21d132350f4e3e345ec6f9c6d (patch) | |
tree | eb3cbf8d80b4fe95c0e41f89e45233cca3ca3835 | |
parent | c708d91dbfd691b965e1d5fb06cf6f95e3673000 (diff) |
Don't interrupt alien healing with Covid damage
-rw-r--r-- | src/game/g_combat.c | 3 |
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 |