Skip to content
Snippets Groups Projects
Commit ca85f9b4 authored by DarkGod's avatar DarkGod
Browse files

Disruption Shield correctly respects the radius increase fomr Aether Avatar

parent a371c87b
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
local radius = radius or 5
base_size = 32
can_shift = true
......@@ -24,7 +25,7 @@ return { generator = function()
local ad = rng.range(0, 360)
local a = math.rad(ad)
local dir = math.rad(ad + 90)
local r = rng.avg(1, 40 * 3)
local r = rng.avg(1, 16 + 32 * radius)
local dirv = math.rad(5)
return {
......@@ -44,7 +45,7 @@ return { generator = function()
}
end, },
function(self)
self.ps:emit(10)
self.ps:emit(radius * radius / 2)
end,
500,
2000,
"weather/snowflake"
......@@ -152,7 +152,7 @@ newTalent{
use_only_arcane = 1,
no_energy = true,
tactical = { MANA = 3, DEFEND = 2, },
radius = 5,
radius = function(self, t) return self:hasEffect(self.EFF_AETHER_AVATAR) and 10 or 5 end,
getMaxAbsorb = function(self, t) return self:getShieldAmount(self:combatTalentSpellDamage(t, 50, 450)) end,
getManaRatio = function(self, t) return self:combatTalentLimit(t, 0.2, 0.95, 0.35) end,
-- Note: effects handled in mod.class.Actor:onTakeHit function
......@@ -175,7 +175,7 @@ newTalent{
DamageType.ARCANE, self:spellCrit(dam / 5),
radius,
5, nil,
{type="arcanestorm", only_one=true},
{type="arcanestorm", args={radius=radius}, only_one=true},
function(e) e.x = e.src.x e.y = e.src.y return true end,
false
)
......
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