Commit b6b4ee145f2050f073cc28a9aa454c1440178ca7

Authored by DarkGod
2 parents 6ff9d4ca abf8d96a

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
... ... @@ -93,7 +93,13 @@ newTalent{
93 93 range = 1,
94 94 is_special_melee = true,
95 95 on_pre_use = function(self, t, silent)
96   - return preUse(self, t, silent)
  96 + if not self:hasShield() then
  97 + if not silent then
  98 + game.logPlayer(self, "You require a shield to use this talent.")
  99 + end
  100 + return false
  101 + end
  102 + return true
97 103 end,
98 104 getDamage = function(self, t) return self:combatTalentWeaponDamage(t, 1.5, 3.0) end,
99 105 getDist = function(self, t) return math.floor(self:combatTalentScale(t, 3, 5)) end,
... ...