Skip to content
Snippets Groups Projects
Commit 1d7ad8af authored by Lisa Greene's avatar Lisa Greene
Browse files

Oops

parent 461669be
No related branches found
No related tags found
No related merge requests found
......@@ -410,7 +410,8 @@ newTalent{
on_arrival = function(self, t, m)
local tg = {type="ball", range=self:getTalentRange(t), radius=self:getTalentRadius(t), talent=t, x=m.x, y=m.y}
local duration = self:callTalent(self.T_GRAND_ARRIVAL, "effectDuration")
self:project(tg, m.x, m.y, DamageType.TEMP_EFFECT, {foes=true, eff=self.EFF_LOWER_FIRE_RESIST, dur=duration, p={power=self:combatTalentMindDamage(t, 15, 70)}})
local reduction = self:callTalent(self.T_GRAND_ARRIVAL, "resReduction")
self:project(tg, m.x, m.y, DamageType.TEMP_EFFECT, {foes=true, eff=self.EFF_LOWER_FIRE_RESIST, dur=duration, p={power=reduction}})
game.level.map:particleEmitter(m.x, m.y, tg.radius, "ball_fire", {radius=tg.radius})
end,
incStats = function(self, t, fake)
......@@ -514,9 +515,10 @@ newTalent{
end,
on_arrival = function(self, t, m)
local tg = {type="ball", range=self:getTalentRange(t), radius=self:getTalentRadius(t), talent=t, x=m.x, y=m.y}
local poisonDmg = self:callTalent(self.T_GRAND_ARRIVAL, "poisonDamage")
game.level.map:addEffect(self,
m.x, m.y, self:callTalent(self.T_GRAND_ARRIVAL,"effectDuration"),
DamageType.POISON, {dam=self:combatTalentMindDamage(t, 10, 60), apply_power=self:combatMindpower()},
DamageType.POISON, {dam=poisonDmg, apply_power=self:combatMindpower()},
self:getTalentRadius(t),
5, nil,
MapEffect.new{color_br=255, color_bg=255, color_bb=255, effect_shader="shader_images/poison_effect.png"},
......@@ -628,6 +630,8 @@ newTalent{
on_arrival = function(self, t, m)
local tg = {type="ball", range=self:getTalentRange(t), radius=self:getTalentRadius(t), talent=t, x=m.x, y=m.y}
local duration = self:callTalent(self.T_GRAND_ARRIVAL,"effectDuration")
local reduction = self:callTalent(self.T_GRAND_ARRIVAL,"resReduction")
self:project(tg, m.x, m.y, DamageType.TEMP_EFFECT, {foes=true, eff=self.EFF_LOWER_COLD_RESIST, dur=duration, p={power=reduction}}, {type="flame"})
self:project(tg, m.x, m.y, DamageType.TEMP_EFFECT, {foes=true, eff=self.EFF_LOWER_COLD_RESIST, dur=duration, p={power=self:combatTalentMindDamage(t, 15, 70)}}, {type="flame"})
end,
summonTime = function(self, t) return math.floor(self:combatScale(self:getTalentLevel(t) + self:getTalentLevel(self.T_RESILIENCE), 5, 0, 10, 5)) 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