Skip to content
Snippets Groups Projects
Commit b6b4ee14 authored by DarkGod's avatar DarkGod
Browse files

Merge branch 'update-agility-vault-preuse' into 'master'

Update the on_pre_use for Vault to check for a shield only.

The action only uses the shield, so we don't need to check for sling and ammo as well.

See merge request !767
parents 6ff9d4ca abf8d96a
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,13 @@ newTalent{
range = 1,
is_special_melee = true,
on_pre_use = function(self, t, silent)
return preUse(self, t, silent)
if not self:hasShield() then
if not silent then
game.logPlayer(self, "You require a shield to use this talent.")
end
return false
end
return true
end,
getDamage = function(self, t) return self:combatTalentWeaponDamage(t, 1.5, 3.0) end,
getDist = function(self, t) return math.floor(self:combatTalentScale(t, 3, 5)) end,
......
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