Properly remove shadowling/cult status from robots

This commit is contained in:
Markolie
2015-09-11 06:46:07 +02:00
parent be93c18291
commit caf5603822
3 changed files with 29 additions and 4 deletions
+2
View File
@@ -3,4 +3,6 @@
if(mind && ticker && ticker.mode)
ticker.mode.remove_cultist(mind, 1)
ticker.mode.remove_revolutionary(mind, 1)
ticker.mode.remove_thrall(mind,0)
ticker.mode.remove_shadowling(mind)
..()
@@ -2,6 +2,8 @@
..()
regenerate_icons()
show_laws(0)
if(mind) ticker.mode.remove_cultist(mind)
if(mind) ticker.mode.remove_revolutionary(mind)
if(mind) ticker.mode.remove_thrall(mind,0)
if(mind) ticker.mode.remove_shadowling(mind)
return