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:46:22 +0200 |
commit | 651f793a9af60bd0662c509310f1cc50e424b1f0 (patch) | |
tree | ad8d32691d353ac5e30a09d102435f09c30c828c /src | |
parent | 140e2d8bc61bb045a6c196635fea4d9d389d4bb0 (diff) |
Don't interrupt alien healing with Covid damage
Diffstat (limited to 'src')
-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 5b4dac6..6e25aa3 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -1487,7 +1487,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 |