From 1711d01e7aa8459f57208dd0712f6af2fc9ecea2 Mon Sep 17 00:00:00 2001 From: Yoshax Date: Thu, 4 Jun 2015 19:42:06 +0100 Subject: [PATCH] Makes special wizard projectile staffs only usable by wizards. --- code/modules/projectiles/guns/energy/special.dm | 7 +++++++ html/changelogs/Yoshax-stafffixes.yml | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 html/changelogs/Yoshax-stafffixes.yml diff --git a/code/modules/projectiles/guns/energy/special.dm b/code/modules/projectiles/guns/energy/special.dm index e5eadb0ae3..7f1457d638 100644 --- a/code/modules/projectiles/guns/energy/special.dm +++ b/code/modules/projectiles/guns/energy/special.dm @@ -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 << "You focus your mind on \the [src], but nothing happens!" + return 0 + + return ..() + /obj/item/weapon/gun/energy/staff/handle_click_empty(mob/user = null) if (user) user.visible_message("*fizzle*", "*fizzle*") diff --git a/html/changelogs/Yoshax-stafffixes.yml b/html/changelogs/Yoshax-stafffixes.yml new file mode 100644 index 0000000000..b9038094f2 --- /dev/null +++ b/html/changelogs/Yoshax-stafffixes.yml @@ -0,0 +1,5 @@ +author: Yoshax +delete-after: True + +changes: + - tweak: "Makes the special wizard projectile staffs, Animate, Change, Focus and any future ones only usable by wizards.." \ No newline at end of file