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

Fixed range of Disperse magic

Fatigue now affects mana at twice the effect


git-svn-id: http://svn.net-core.org/repos/t-engine4@1588 51575b47-30f0-44d4-a5cc-537603b46e54
parent 15a4b321
No related branches found
No related tags found
No related merge requests found
......@@ -1146,7 +1146,7 @@ function _M:preUseTalent(ab, silent, fake)
return false
end
else
if ab.mana and self:getMana() < ab.mana * (100 + self.fatigue) / 100 then
if ab.mana and self:getMana() < ab.mana * (100 + 2 * self.fatigue) / 100 then
if not silent then game.logPlayer(self, "You do not have enough mana to cast %s.", ab.name) end
return false
end
......@@ -1285,7 +1285,7 @@ function _M:postUseTalent(ab, ret)
end
else
if ab.mana then
trigger = true; self:incMana(-ab.mana * (100 + self.fatigue) / 100)
trigger = true; self:incMana(-ab.mana * (100 + 2 * self.fatigue) / 100)
end
if ab.stamina then
trigger = true; self:incStamina(-ab.stamina * (100 + self.fatigue) / 100)
......@@ -1397,7 +1397,7 @@ function _M:getTalentFullDescription(t, addlevel)
else d:add({"color",0x6f,0xff,0x83}, "Use mode: ", {"color",0x00,0xFF,0x00}, "Activated", true)
end
if t.mana or t.sustain_mana then d:add({"color",0x6f,0xff,0x83}, "Mana cost: ", {"color",0x7f,0xff,0xd4}, ""..(t.sustain_mana or t.mana * (100 + self.fatigue) / 100), true) end
if t.mana or t.sustain_mana then d:add({"color",0x6f,0xff,0x83}, "Mana cost: ", {"color",0x7f,0xff,0xd4}, ""..(t.sustain_mana or t.mana * (100 + 2 * self.fatigue) / 100), true) end
if t.stamina or t.sustain_stamina then d:add({"color",0x6f,0xff,0x83}, "Stamina cost: ", {"color",0xff,0xcc,0x80}, ""..(t.sustain_stamina or t.stamina * (100 + self.fatigue) / 100), true) end
if t.equilibrium or t.sustain_equilibrium then d:add({"color",0x6f,0xff,0x83}, "Equilibrium cost: ", {"color",0x00,0xff,0x74}, ""..(t.equilibrium or t.sustain_equilibrium), true) end
if t.vim or t.sustain_vim then d:add({"color",0x6f,0xff,0x83}, "Vim cost: ", {"color",0x88,0x88,0x88}, ""..(t.sustain_vim or t.vim), true) end
......
......@@ -27,6 +27,7 @@ newTalent{
cooldown = 7,
direct_hit = true,
requires_target = function(self, t) return self:getTalentLevel(t) >= 3 end,
range = 20,
action = function(self, t)
local target = self
......
No preview for this file type
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