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

Discarded Refuse can only be used in combat, unsustains when out of combat and...

Discarded Refuse can only be used in combat, unsustains when out of combat and sustain cost is changed to a casting cost. It is not meant to be left on but to be used as a cooldown
parent e1ab7e1a
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -370,19 +370,22 @@ newTalent{
require = spells_req4,
points = 5,
mode = "sustained",
sustain_mana = 40,
mana = 40,
soul = 1,
cooldown = function(self, t) return math.ceil(self:combatTalentLimit(t, 15, 40, 20)) end,
cooldown = function(self, t) return math.ceil(self:combatTalentLimit(t, 15, 35, 15)) end,
tactical = { CURE = 1 },
range = 10,
no_energy = true,
target = function(self, t) return {type="hit", range=self:getTalentRange(t)} end,
on_pre_use = function(self, t) return necroArmyStats(self).nb_ghoul > 0 end,
on_pre_use = function(self, t) return necroArmyStats(self).nb_ghoul > 0 and self.in_combat end,
callbackOnActBase = function(self, t)
if necroArmyStats(self).nb_ghoul == 0 then
self:forceUseTalent(t.id, {ignore_energy=true})
end
end,
callbackOnCombat = function(self, t, state)
if state == false then self:forceUseTalent(t.id, {ignore_energy=true}) end
end,
callbackOnTemporaryEffect = function(self, t, eff_id, e, p)
if e.status ~= "detrimental" then return end
if self.life < 1 then
......@@ -414,7 +417,7 @@ newTalent{
The ghoul dies from the process.
While under 1 life it also affects magical and mental effects.
Cross-tier effects are never affected.
This spell will automatically unsustain if you have no more ghouls.
This spell can only be used in comabt and will automatically unsustain if you have no more ghouls or if you leave combat.
]]):
tformat()
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