summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r--src/game/g_buildable.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 54717b3b..17cd1402 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -1702,7 +1702,12 @@ void HMedistat_Think( gentity_t *self )
self->active = qfalse;
}
else if( self->enemy ) //heal!
+ {
+ if( self->enemy->client && self->enemy->client->ps.stats[ STAT_STATE ] & SS_POISONED )
+ self->enemy->client->ps.stats[ STAT_STATE ] &= ~SS_POISONED;
+
self->enemy->health++;
+ }
}
}