]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/monsters/monster/knight.qc
Remove W_SetupShot from monster code & fix minibosses flying
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / monsters / monster / knight.qc
index f87ca009188174155ee0b93c09ca4845c59c2d3b..c41c18b9d1cfb56983c426f2298f6fd02e25fbc5 100644 (file)
@@ -285,7 +285,7 @@ float m_knight(float req)
                {
                        float chance = random();
                        monsters_setframe((random() > 0.5) ? knight_anim_death1 : knight_anim_death2);
-                       if(chance < 0.10 || self.flags & MONSTERFLAG_MINIBOSS)
+                       if(chance < 0.10 || self.spawnflags & MONSTERFLAG_MINIBOSS)
                        if(self.candrop)
                        {
                                self.superweapons_finished = time + autocvar_g_balance_superweapons_time + 5; // give the player a few seconds to find the weapon