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

Dread now learns its talents based on the spell level

parent 91bd25ac
No related branches found
No related tags found
No related merge requests found
......@@ -71,13 +71,7 @@ newTalent{
dread_minion = "dread",
no_boneyard_resurrect = true,
resolvers.talents{
T_BURNING_HEX={base=1, every=5},
T_EMPATHIC_HEX={base=0, last=10, every=5},
T_PACIFICATION_HEX={base=0, last=15, every=5},
T_BLUR_SIGHT={base=3, every=5},
T_PHASE_DOOR={base=1, every=6},
},
-- Dread talents are learnt after summoning
max_life = resolvers.rngavg(90,100),
},
dreadmaster = {
......@@ -121,14 +115,7 @@ newTalent{
dread_minion = "dread",
no_boneyard_resurrect = true,
resolvers.talents{
T_BURNING_HEX={base=1, every=5},
T_EMPATHIC_HEX={base=0, last=10, every=5},
T_PACIFICATION_HEX={base=0, last=15, every=5},
T_BLUR_SIGHT={base=3, every=5},
T_PHASE_DOOR={base=1, every=6},
-- Dreadmaster talents are learnt after summoning
},
-- Dreadmaster talents are learnt after summoning
max_life = resolvers.rngavg(140,170),
},
},
......@@ -140,6 +127,14 @@ newTalent{
local x, y = util.findFreeGrid(self.x, self.y, 5, true, {[Map.ACTOR]=true})
if not x then return end
local dread = necroSetupSummon(self, self:knowTalent(self.T_DREADMASTER) and t.minions_list.dreadmaster or t.minions_list.dread, x, y, lev, nil, true)
local lvl = math.floor(self:getTalentLevel(t))
dread:learnTalent(dread.T_BURNING_HEX, true, lvl)
dread:learnTalent(dread.T_EMPATHIC_HEX, true, lvl)
dread:learnTalent(dread.T_PACIFICATION_HEX, true, lvl)
dread:learnTalent(dread.T_BLUR_SIGHT, true, lvl + 2)
dread:learnTalent(dread.T_PHASE_DOOR, true, lvl)
if self:knowTalent(self.T_DREADMASTER) then
local lvl = math.floor(self:getTalentLevel(self.T_DREADMASTER))
dread:learnTalent(dread.T_SILENCE, true, lvl)
......@@ -150,8 +145,15 @@ newTalent{
return true
end,
info = function(self, t)
local lvl = math.floor(self:getTalentLevel(t))
return ([[Summon a Dread of level %d that will annoyingly blink around, hexing your foes.
]]):tformat(math.max(1, self.level + t:_getLevel(self)))
It knows the following spells:
- Burning Hex at level %d
- Empathic Hex at level %d
- Pacification Hex at level %d
- Blur Sight at level %d
- Phase Door at level %d
]]):tformat(math.max(1, self.level + t:_getLevel(self)), lvl, lvl, lvl, lvl + 2, lvl)
end,
}
......
......@@ -114,7 +114,7 @@ newTalent{
local damage = t.getDamage(self, t)
return ([[Surround yourself with a phantasmal shield of pure light.
Whenever you would take damage there is %d%% chance to become ethereal for an instant and fully ignore it.
If you do get hit, the shield glow brightly, sending triggering a flash of light on the attacker, dealing %0.2f light damage in radius %d around it and dazzling any affected creature (deal 10%% less damage) for 5 turns. This can only happen every %d turns.
If you do get hit, the shield glows brightly, sending triggering a flash of light on the attacker, dealing %0.2f light damage in radius %d around it and dazzling any affected creature (deal 10%% less damage) for 5 turns. This can only happen every %d turns.
The damage and ignore chance will increase with your Spellpower.]]):
tformat(t.getEvade(self, t), damDesc(self, DamageType.LIGHT, damage), self:getTalentRadius(t), t.getDur(self, t))
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