Skip to content
Snippets Groups Projects
Commit b2215876 authored by dg's avatar dg
Browse files

new hook

git-svn-id: http://svn.net-core.org/repos/t-engine4@4651 51575b47-30f0-44d4-a5cc-537603b46e54
parent b74fa291
No related branches found
No related tags found
No related merge requests found
......@@ -111,7 +111,14 @@ function _M:attackTarget(target, damtype, mult, noenergy)
end
local break_stealth = false
if self:isTalentActive(self.T_GESTURE_OF_PAIN) then
local hd = {"Combat:attackTarget", target=target, damtype=damtype, mult=mult, noenergy=noenergy}
if self:triggerHook(hd) then
speed, hit = ht.speed, hd.hit
if ht.stop then return hit end
end
if not speed and self:isTalentActive(self.T_GESTURE_OF_PAIN) then
print("[ATTACK] attacking with Gesture of Pain")
local t = self:getTalentFromId(self.T_GESTURE_OF_PAIN)
if not t.preAttack(self, t, target) then return false end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment