]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't heal players with invincibility powerup
authorMario <mario.mario@y7mail.com>
Wed, 5 Jun 2013 20:27:36 +0000 (06:27 +1000)
committerMario <mario.mario@y7mail.com>
Wed, 5 Jun 2013 20:27:36 +0000 (06:27 +1000)
qcsrc/server/monsters/monster/mage.qc

index e107866ce37ca42f95cd652a0ec01c11f5c0b0c6..c7983a3f36297b7358e55ec3aef3be38eeb80283 100644 (file)
@@ -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)
        {