Code: Select all
callbackOnMeleeAttack = function(self, t, target, hitted, crit, weapon, damtype, mult, dam)
local shield = self:hasShield()
if hitted and not target.dead and shield and not self.turn_procs.sword_and_board and shield.special_combat then
self.turn_procs.sword_and_board = true
self:attackTarget(target, nil, t.getDamage(self, t), true)
elseif hitted and not target.dead and not self.turn_procs.sword_and_board then
self.turn_procs.sword_and_board = true
self:attackTargetWith(target, shield.special_combat, nil, t.getDamage(self, t))
end
end,