]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Apply ice nade's Frozen status effect to players and monsters explicitly
authorMario <mario.mario@y7mail.com>
Fri, 14 Feb 2025 03:56:27 +0000 (13:56 +1000)
committerMario <mario.mario@y7mail.com>
Fri, 14 Feb 2025 03:56:27 +0000 (13:56 +1000)
qcsrc/common/mutators/mutator/nades/nade/ice.qc

index f681643c1b4ddfdd40012df14a6742cd68625410..0639e7069537819c8d0a3bbc666b7dd97d2ffa1b 100644 (file)
@@ -61,7 +61,7 @@ void nade_ice_think(entity this)
        float current_freeze_time = this.ltime - time - 0.1;
 
        FOREACH_ENTITY_RADIUS(this.origin, autocvar_g_nades_nade_radius, it != this && it.takedamage
-               && it.iscreature && !IS_DEAD(it) && GetResource(it, RES_HEALTH) > 0 && current_freeze_time > 0
+               && (IS_PLAYER(it) || IS_MONSTER(it)) && !IS_DEAD(it) && GetResource(it, RES_HEALTH) > 0 && current_freeze_time > 0
                && (!it.revival_time || ((time - it.revival_time) >= 1.5))
                && !STAT(FROZEN, it) && !StatusEffects_active(STATUSEFFECT_Frozen, it),
        {