Commit 3fe0120760baefa99b8f74ed13023a82006b68e3

Authored by DarkGod
1 parent a5c37dca

Fix a bug with Garrote

... ... @@ -130,7 +130,7 @@ newTalent{
130 130 end,
131 131 callbackOnMeleeAttack = function(self, t, target, hitted, crit, weapon, damtype, mult, dam)
132 132 local dam = t.getDamage(self,t)
133   - if weapon.no_garrote then return end
  133 + if weapon and weapon.no_garrote then return end
134 134 if target and not target.dead and self:isTalentActive(self.T_STEALTH) and not self:isTalentCoolingDown(t) and core.fov.distance(self.x, self.y, target.x, target.y) <= 1 then
135 135 self:startTalentCooldown(t)
136 136 -- check takes the place of normal melee hit chance
... ...