]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/common.qc
Deathtypes: port to registry
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / common.qc
index 5ddea150a974103a04946359bcc5dcf6b22638e1..56ad6445906b94578821d73ad2b291cc754468ec 100644 (file)
@@ -392,7 +392,7 @@ void CommonCommand_editmob(int request, entity caller, int argc)
                                        if(mon.realowner != caller && autocvar_g_monsters_edit < 2) { print_to(caller, "This monster does not belong to you"); return; }
                                        if(!is_visible) { print_to(caller, "You must look at your monster to edit it"); return; }
 
-                                       Damage (mon, world, world, mon.health + mon.max_health + 200, DEATH_KILL, mon.origin, '0 0 0');
+                                       Damage (mon, world, world, mon.health + mon.max_health + 200, DEATH_KILL.m_id, mon.origin, '0 0 0');
                                        print_to(caller, strcat("Your pet '", mon.monster_name, "' has been brutally mutilated"));
                                        return;
                                }