Minor Projectile Reflection Refactor (#1926)

This commit is contained in:
CitadelStationBot
2017-07-07 12:33:59 -05:00
committed by kevinz000
parent be5ad79fa2
commit 5dd25bda95
4 changed files with 4 additions and 1 deletions
@@ -49,7 +49,7 @@
return 0
if(!(P.original == src && P.firer == src)) //can't block or reflect when shooting yourself
if(istype(P, /obj/item/projectile/energy) || istype(P, /obj/item/projectile/beam))
if(P.is_reflectable)
if(check_reflect(def_zone)) // Checks if you've passed a reflection% check
visible_message("<span class='danger'>The [P.name] gets reflected by [src]!</span>", \
"<span class='userdanger'>The [P.name] gets reflected by [src]!</span>")