Makes special wizard projectile staffs only usable by wizards.

This commit is contained in:
Yoshax
2015-06-04 19:42:06 +01:00
parent ef36c256da
commit 1711d01e7a
2 changed files with 12 additions and 0 deletions

View File

@@ -117,6 +117,13 @@
self_recharge = 1
charge_meter = 0
/obj/item/weapon/gun/energy/staff/special_check(var/mob/user)
if((user.mind && !wizards.is_antagonist(user.mind)))
usr << "<span class='warning'>You focus your mind on \the [src], but nothing happens!</span>"
return 0
return ..()
/obj/item/weapon/gun/energy/staff/handle_click_empty(mob/user = null)
if (user)
user.visible_message("*fizzle*", "<span class='danger'>*fizzle*</span>")