Fixes an issue with raging mages and slightly cleans up the code around it (#21931)

* The thingy

* Henri review
This commit is contained in:
DGamerL
2023-08-16 19:17:30 +01:00
committed by GitHub
parent 8cdd9c766e
commit 545285e4e8
2 changed files with 10 additions and 26 deletions
+1 -5
View File
@@ -164,11 +164,7 @@
// Wizards
for(var/datum/mind/wizard in wizards)
if(!iscarbon(wizard.current))
continue
if(wizard.current.stat==DEAD)
continue
if(istype(wizard.current, /obj/item/mmi)) // wizard is in an MMI, don't count them as alive
if(!iscarbon(wizard.current || wizard.current.stat == DEAD) || istype(wizard.current, /obj/item/mmi)) // wizard is in an MMI, don't count them as alive
continue
wizards_alive++