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

Pure Aether at level 5 allows Aegis spells to be used while Aether Avatar is active

git-svn-id: http://svn.net-core.org/repos/t-engine4@6225 51575b47-30f0-44d4-a5cc-537603b46e54
parent 846cfdee
No related branches found
No related tags found
No related merge requests found
......@@ -3590,7 +3590,11 @@ function _M:preUseTalent(ab, silent, fake)
-- Special checks
if ab.on_pre_use and not (ab.mode == "sustained" and self:isTalentActive(ab.id)) and not ab.on_pre_use(self, ab, silent, fake) then return false end
if self:attr("use_only_arcane") and ab.type[1] ~= "spell/arcane" and ab.type[1] ~= "spell/aether" then return false end
if self:attr("use_only_arcane") then
if self:attr("use_only_arcane") >= 2 then if ab.type[1] ~= "spell/arcane" and ab.type[1] ~= "spell/aether" and ab.type[1] ~= "spell/aegis" then return false end
elseif self:attr("use_only_arcane") >= 1 then if ab.type[1] ~= "spell/arcane" and ab.type[1] ~= "spell/aether" then return false end
end
end
-- Cant heal
if ab.is_heal and self:attr("no_healing") then return false end
......
......@@ -223,7 +223,8 @@ newTalent{
info = function(self, t)
local damageinc = t.getDamageIncrease(self, t)
local ressistpen = t.getResistPenalty(self, t)
return ([[Surround yourself with Pure Aether, increasing all your arcane damage by %d%% and ignoring %d%% arcane resistance of your targets.]])
return ([[Surround yourself with Pure Aether, increasing all your arcane damage by %d%% and ignoring %d%% arcane resistance of your targets.
At level 5 it allows Aegis spells to be used while in Aether Avatar form.]])
:format(damageinc, ressistpen)
end,
}
......@@ -1926,7 +1926,7 @@ newEffect{
activate = function(self, eff)
self:effectTemporaryValue(eff, "inc_damage", {[DamageType.ARCANE]=25})
self:effectTemporaryValue(eff, "max_mana", self:getMaxMana() * 0.33)
self:effectTemporaryValue(eff, "use_only_arcane", 1)
self:effectTemporaryValue(eff, "use_only_arcane", (self:isTalentActive(self.T_PURE_AETHER) and self:getTalentLevel(self.T_PURE_AETHER) >= 5) and 2 or 1)
self:effectTemporaryValue(eff, "arcane_cooldown_divide", 3)
if not self.shader then
......
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