Fixes snowballs damaging structures (#15111)

* Fixes snowballs damaging structures

* Check for blocking, isliving
This commit is contained in:
dearmochi
2020-12-14 17:10:28 +00:00
committed by GitHub
parent 8e264857c7
commit 4486ae01ec
+6 -3
View File
@@ -125,12 +125,15 @@
/obj/item/snowball
name = "snowball"
desc = "Get ready for a snowball fight!"
throwforce = 10
icon_state = "snowball"
damtype = STAMINA
/// The amount of stamina damage to do on hit.
var/stamina_damage = 10
/obj/item/snowball/throw_impact(atom/target)
..()
. = ..()
if(!. && isliving(target))
var/mob/living/M = target
M.adjustStaminaLoss(stamina_damage)
qdel(src)
/obj/item/snowball/fire_act(datum/gas_mixture/air, exposed_temperature, exposed_volume, global_overlay = TRUE)