From 4b2fc9adac4c65fbf6748186a3ce2a24dc8b72ac Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Sun, 2 Jun 2013 17:19:18 +0000 Subject: [PATCH] for purequestion, with love git-svn-id: http://svn.net-core.org/repos/t-engine4@6815 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/class/interface/Archery.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/game/modules/tome/class/interface/Archery.lua b/game/modules/tome/class/interface/Archery.lua index c093e5fde5..09190e8b49 100644 --- a/game/modules/tome/class/interface/Archery.lua +++ b/game/modules/tome/class/interface/Archery.lua @@ -546,7 +546,11 @@ function _M:hasArcheryWeapon(type) end if offweapon and not offweapon.archery then offweapon = nil end if not weapon or not weapon.archery then - return nil, "no shooter" + if self:attr("can_offshoot") and offweapon then + weapon, offweapon = offweapon, nil + else + return nil, "no shooter" + end end if not ammo then return nil, "no ammo" -- GitLab