I need a callback in Combat:attackTargetWith() that allows duplication of the effects of talents like Repel, Buckler Expertise, Warding Weapon, Blade Ward, Intuitive Shots and Dwarven Stoneskin. (and by the looks of it, the code would look much neater if one existed.)
Will this be happening in 1.6?
If not, will it happen if I code it for 1.6?
Target Callback in attackTargetWith()
Moderator: Moderator
Target Callback in attackTargetWith()
My feedback meter decays into coding. Give me feedback and I make mods.
-
- Wayist
- Posts: 25
- Joined: Thu Mar 12, 2015 11:12 pm
Re: Target Callback in attackTargetWith()
Could callbackOMeleeAttackBonuses be modified to provide this functionality? e.g.
changed to
Code: Select all
local hd = {"Combat:attackTargetWith:attackerBonuses", target=target, weapon=weapon, damtype=damtype, mult=mult, dam=dam, apr=apr, atk=atk, def=def, armor=armor}
self:triggerHook(hd)
self:fireTalentCheck("callbackOMeleeAttackBonuses", hd)
target, weapon, damtype, mult, dam, apr, atk, def, armor = hd.target, hd.weapon, hd.damtype, hd.mult, hd.dam, hd.apr, hd.atk, hd.def, hd.armor
Code: Select all
local hd = {"Combat:attackTargetWith:attackerBonuses", repelled=repelled, target=target, weapon=weapon, damtype=damtype, mult=mult, dam=dam, apr=apr, atk=atk, def=def, armor=armor}
self:triggerHook(hd)
self:fireTalentCheck("callbackOMeleeAttackBonuses", hd)
repelled, target, weapon, damtype, mult, dam, apr, atk, def, armor = hd.repelled, hd.target, hd.weapon, hd.damtype, hd.mult, hd.dam, hd.apr, hd.atk, hd.def, hd.armor