...
|
...
|
@@ -17,6 +17,8 @@ |
17
|
17
|
-- Nicolas Casalini "DarkGod"
|
18
|
18
|
-- darkgod@te4.org
|
19
|
19
|
|
|
20
|
+local DamageType = require "engine.DamageType"
|
|
21
|
+
|
20
|
22
|
newTalent{
|
21
|
23
|
name = "Rend",
|
22
|
24
|
type = {"corruption/scourge", 1},
|
...
|
...
|
@@ -39,8 +41,10 @@ newTalent{ |
39
|
41
|
if not x or not y or not target then return nil end
|
40
|
42
|
if core.fov.distance(self.x, self.y, x, y) > 1 then return nil end
|
41
|
43
|
|
|
44
|
+ DamageType:projectingFor(self, {project_type={talent=t}})
|
42
|
45
|
local speed1, hit1 = self:attackTargetWith(target, weapon.combat, nil, self:combatTalentWeaponDamage(t, 0.8, 1.6))
|
43
|
46
|
local speed2, hit2 = self:attackTargetWith(target, offweapon.combat, nil, self:getOffHandMult(offweapon.combat, self:combatTalentWeaponDamage(t, 0.8, 1.6)))
|
|
47
|
+ DamageType:projectingFor(self, nil)
|
44
|
48
|
|
45
|
49
|
-- Try to bleed !
|
46
|
50
|
if hit1 then
|
...
|
...
|
@@ -120,8 +124,10 @@ newTalent{ |
120
|
124
|
if not x or not y or not target then return nil end
|
121
|
125
|
if core.fov.distance(self.x, self.y, x, y) > 1 then return nil end
|
122
|
126
|
|
|
127
|
+ DamageType:projectingFor(self, {project_type={talent=t}})
|
123
|
128
|
local speed1, hit1 = self:attackTargetWith(target, weapon.combat, DamageType.ACID, self:combatTalentWeaponDamage(t, 0.8, 1.6))
|
124
|
129
|
local speed2, hit2 = self:attackTargetWith(target, offweapon.combat, DamageType.ACID, self:getOffHandMult(offweapon.combat, self:combatTalentWeaponDamage(t, 0.8, 1.6)))
|
|
130
|
+ DamageType:projectingFor(self, nil)
|
125
|
131
|
|
126
|
132
|
-- Acid splash !
|
127
|
133
|
if hit1 or hit2 then
|
...
|
...
|
@@ -162,6 +168,7 @@ newTalent{ |
162
|
168
|
if not x or not y or not target then return nil end
|
163
|
169
|
if core.fov.distance(self.x, self.y, x, y) > 1 then return nil end
|
164
|
170
|
|
|
171
|
+ DamageType:projectingFor(self, {project_type={talent=t}})
|
165
|
172
|
local speed1, hit1 = self:attackTargetWith(target, weapon.combat, DamageType.DARKNESS, self:combatTalentWeaponDamage(t, 0.6, 1.4))
|
166
|
173
|
|
167
|
174
|
if hit1 then
|
...
|
...
|
@@ -174,6 +181,7 @@ newTalent{ |
174
|
181
|
game.logSeen(self, "%s resists the darkness.", target.name:capitalize())
|
175
|
182
|
end
|
176
|
183
|
end
|
|
184
|
+ DamageType:projectingFor(self, nil)
|
177
|
185
|
|
178
|
186
|
return true
|
179
|
187
|
end,
|
...
|
...
|
|