Merge pull request #5311 from Krausus/TheyreSelfCleaningAndOrMagical

Fixes Cremation of Self-Deleting Mobs
This commit is contained in:
Fox McCloud
2016-08-03 19:42:35 -04:00
committed by GitHub
+2
View File
@@ -361,6 +361,8 @@
user.attack_log +="\[[time_stamp()]\] <font color='red'>Cremated [M.name] ([M.ckey])</font>"
log_attack("[user.name] ([user.ckey]) cremated [M.name] ([M.ckey])")
M.death(1)
if(!M || !isnull(M.gcDestroyed))
continue // Re-check for mobs that delete themselves on death
M.ghostize()
qdel(M)