Fixes mobs that aren't able to speak being able to cast spoken spells (#52054)

* Fixes wizard speaking

* defines
This commit is contained in:
ShizCalev
2020-07-08 19:25:39 +02:00
committed by GitHub
parent d2e9139619
commit f4c54ccea4
25 changed files with 67 additions and 60 deletions
@@ -20,7 +20,6 @@
maxHealth = 50000
health = 50000
healable = 0
harm_intent_damage = 10
obj_damage = 100
melee_damage_lower = 68
@@ -109,6 +108,9 @@
if(!can_be_seen(get_turf(loc)))
..()
/mob/living/simple_animals/hostile/statue/IsVocal() //we're a statue, of course we can't talk.
return FALSE
/mob/living/simple_animal/hostile/statue/proc/can_be_seen(turf/destination)
if(!cannot_be_seen)
return null