Commit e6ca86f876145630f8f228c71046cae3f3b4e774
Merge branch 'steady-shoot-fix' into 'master'
Allows Steady Shot triggered via Shoot to apply Marked Allows Steady Shot triggered via Shoot to apply Marked even if Master Marksman is not known, just as using the talent manually would. See merge request !738
Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -61,8 +61,8 @@ newTalent{ |
61 | 61 | if self.mark_steady then self.mark_steady = nil end |
62 | 62 | end, |
63 | 63 | archery_onhit = function(self, t, target, x, y) |
64 | - if self:knowTalent(self.T_MASTER_MARKSMAN) then | |
65 | - local chance = 15 + (self.mark_steady or 0) | |
64 | + if self:knowTalent(self.T_MASTER_MARKSMAN) or self.mark_steady then | |
65 | + local chance = (self:knowTalent(self.T_MASTER_MARKSMAN) and 15 or 0) + (self.mark_steady or 0) | |
66 | 66 | if self:hasEffect(self.EFF_TRUESHOT) then chance = chance + (chance * self:callTalent(self.T_TRUESHOT, "getMarkChance")/100) end |
67 | 67 | if self:isTalentActive(self.T_AIM) then |
68 | 68 | chance = chance + self:callTalent(self.T_AIM, "getMarkChance") | ... | ... |
-
Please register or login to post a comment