Commit abf8d96a507dd574bee434c776ec25ece0723e1d
1 parent
294e777b
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.
Showing
1 changed file
with
7 additions
and
1 deletions
... | ... | @@ -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, | ... | ... |
-
Please register or login to post a comment