From: Mario Date: Wed, 5 Jun 2013 20:27:36 +0000 (+1000) Subject: Don't heal players with invincibility powerup X-Git-Tag: xonotic-v0.8.0~241^2^2~192 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f2b949b4d6d64c5c2f499f1be2f01d4f5ac20bfb;p=xonotic%2Fxonotic-data.pk3dir.git Don't heal players with invincibility powerup --- diff --git a/qcsrc/server/monsters/monster/mage.qc b/qcsrc/server/monsters/monster/mage.qc index e107866ce..c7983a3f3 100644 --- a/qcsrc/server/monsters/monster/mage.qc +++ b/qcsrc/server/monsters/monster/mage.qc @@ -52,6 +52,8 @@ float friend_needshelp(entity e) return FALSE; if(!IS_PLAYER(e)) return (e.health < e.max_health); + if(e.items & IT_INVINCIBLE) + return FALSE; switch(self.skin) {