Skip to content
Snippets Groups Projects
Commit b63e41c3 authored by Sheila's avatar Sheila
Browse files

Update harmony physical buff

parent 599bf632
No related branches found
No related tags found
No related merge requests found
......@@ -1718,10 +1718,10 @@ newEffect{
desc = "Elemental Harmony",
long_desc = function(self, eff)
if eff.type == DamageType.FIRE then return ("Increases global speed by %d%%."):format(100 * self:callTalent(self.T_ELEMENTAL_HARMONY, "fireSpeed"))
elseif eff.type == DamageType.COLD then return ("Increases armour by %d."):format(3 + eff.power *2)
elseif eff.type == DamageType.LIGHTNING then return ("Increases all stats by %d."):format(math.floor(eff.power))
elseif eff.type == DamageType.ACID then return ("Increases life regen by %0.2f."):format(5 + eff.power * 2)
elseif eff.type == DamageType.NATURE then return ("Increases all resists by %d%%."):format(5 + eff.power * 1.4)
elseif eff.type == DamageType.COLD then return ("Increases armour by %d."):format(self:callTalent(self.T_ELEMENTAL_HARMONY, "coldArmor"))
elseif eff.type == DamageType.LIGHTNING then return ("Increases all stats by %d."):format(self:callTalent(self.T_ELEMENTAL_HARMONY, "lightningStats"))
elseif eff.type == DamageType.ACID then return ("Increases life regen by %0.2f."):format(self:callTalent(self.T_ELEMENTAL_HARMONY, "acidRegen"))
elseif eff.type == DamageType.NATURE then return ("Increases all resists by %d%%."):format(self:callTalent(self.T_ELEMENTAL_HARMONY, "natureRes"))
end
end,
type = "physical",
......@@ -1733,21 +1733,22 @@ newEffect{
if eff.type == DamageType.FIRE then
eff.tmpid = self:addTemporaryValue("global_speed_add", self:callTalent(self.T_ELEMENTAL_HARMONY, "fireSpeed"))
elseif eff.type == DamageType.COLD then
eff.tmpid = self:addTemporaryValue("combat_armor", 3 + eff.power * 2)
eff.tmpid = self:addTemporaryValue("combat_armor", self:callTalent(self.T_ELEMENTAL_HARMONY, "coldArmor"))
elseif eff.type == DamageType.LIGHTNING then
local stats = self:callTalent(self.T_ELEMENTAL_HARMONY, "lightningStats")
eff.tmpid = self:addTemporaryValue("inc_stats",
{
[Stats.STAT_STR] = math.floor(eff.power),
[Stats.STAT_DEX] = math.floor(eff.power),
[Stats.STAT_MAG] = math.floor(eff.power),
[Stats.STAT_WIL] = math.floor(eff.power),
[Stats.STAT_CUN] = math.floor(eff.power),
[Stats.STAT_CON] = math.floor(eff.power),
[Stats.STAT_STR] = stats,
[Stats.STAT_DEX] = stats,
[Stats.STAT_MAG] = stats,
[Stats.STAT_WIL] = stats,
[Stats.STAT_CUN] = stats,
[Stats.STAT_CON] = stats,
})
elseif eff.type == DamageType.ACID then
eff.tmpid = self:addTemporaryValue("life_regen", 5 + eff.power * 2)
eff.tmpid = self:addTemporaryValue("life_regen", self:callTalent(self.T_ELEMENTAL_HARMONY, "coldArmor"))
elseif eff.type == DamageType.NATURE then
eff.tmpid = self:addTemporaryValue("resists", {all=5 + eff.power * 1.4})
eff.tmpid = self:addTemporaryValue("resists", {all=self:callTalent(self.T_ELEMENTAL_HARMONY, "natureRes")})
end
end,
deactivate = function(self, eff)
......
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