[MIRROR] Fixes a parrot posession runtime (#3516)

* Fixes a parrot posession runtime (#31879)

* Fixes a parrot posession runtime
This commit is contained in:
CitadelStationBot
2017-10-20 01:41:28 -05:00
committed by Poojawa
parent 729d9d4ab8
commit b044758315

View File

@@ -18,10 +18,11 @@
if(!parrot || parrot.loc != affected_mob)
cure()
else if(prob(parrot.speak_chance))
affected_mob.say(pick(parrot.speech_buffer))
if(parrot.speech_buffer.len)
affected_mob.say(pick(parrot.speech_buffer))
/datum/disease/parrot_possession/cure()
if(parrot && parrot.loc == affected_mob)
parrot.forceMove(affected_mob.drop_location())
affected_mob.visible_message("<span class='danger'>[parrot] is violently driven out of [affected_mob]!</span>", "<span class='userdanger'>[parrot] bursts out of your chest!</span>")
..()
..()