]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix zombie checking if its enemy is valid every time it attacks
authorMario <mario.mario@y7mail.com>
Thu, 7 Feb 2013 05:31:05 +0000 (16:31 +1100)
committerMario <mario.mario@y7mail.com>
Thu, 7 Feb 2013 05:31:05 +0000 (16:31 +1100)
qcsrc/server/monsters/monster/zombie.qc

index 113ea64519c9a492ef18d36be569067bfbc43cb2..a6692a72537ab3f1ed042b69bae20a8bd1a494aa 100644 (file)
@@ -101,7 +101,7 @@ void zombie_attack_standing()
                Damage(self.enemy, self, self, bigdmg * monster_skill, DEATH_MONSTER_MELEE, self.origin, '0 0 0');
        }
        
-       if (!monster_isvalidtarget(self.enemy, self, FALSE))
+       if(self.enemy.health < 1)
                self.enemy = world;
                
        if (rand < 0.33)