Skip to content
Snippets Groups Projects
Commit 4b2fc9ad authored by dg's avatar dg
Browse files

for purequestion, with love

git-svn-id: http://svn.net-core.org/repos/t-engine4@6815 51575b47-30f0-44d4-a5cc-537603b46e54
parent 43d02452
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment