Untitled diff

Created Diff never expires
15 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
26 lines
13 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
23 lines
for I = 1, #heroes do
for I = 1, #heroes do
local unit = heroes[I]
local unit = heroes[I]
if ValidTarget(unit) then
if ValidTarget(unit) then
local barPos = GetHPBarPos(unit)
local barPos = GetHPBarPos(unit)
if barPos.x > 0 and barPos.y > 0 then
if barPos.x > 0 and barPos.y > 0 then
local sdmg = {}
local str={_Q, _W, _E, _R}
for slot = 0, 3 do
sdmg[slot] = CanUseSpell(myHero, slot) == 0 and CalcDamage(myHero, unit, 0, self.spellData[slot].dmg(myHero, unit)) or 0
end
local mhp = GetMaxHP(unit)
local mhp = GetMaxHP(unit)
local chp = GetCurrentHP(unit)
local chp = GetCurrentHP(unit)
local offset = 103 * (chp/mhp)
local offset = 103 * (chp/mhp)
for __, spell in pairs({"Q", "W", "E", "R"}) do
for M, spell in pairs({"Q", "W", "E", "R"}) do
if sdmg[__-1] > 0 then
if getdmg(spell,unit) > 0 and IsReady(str[M]) then
local off = 103*(sdmg[__-1]/mhp)
local off = 103*(getdmg(spell,unit)/mhp)
local _ = 2*__
local M = 2*M
DrawLine(barPos.x+1+offset-off, barPos.y-1, barPos.x+1+offset, barPos.y-1, 5, self.colors[__])
DrawLine(barPos.x+1+offset-off, barPos.y-1, barPos.x+1+offset, barPos.y-1, 5, 0xDFFFE258)
DrawLine(barPos.x+1+offset-off, barPos.y-1, barPos.x+1+offset-off, barPos.y+10-10*_, 1, self.colors[__])
DrawLine(barPos.x+1+offset-off, barPos.y-1, barPos.x+1+offset-off, barPos.y+10-10*M, 1, 0xDF8866F4)
DrawText(spell, 11, barPos.x+1+offset-off, barPos.y-5-10*_, self.colors[__])
DrawText(spell, 11, barPos.x+1+offset-off, barPos.y-5-10*M, 0xDF55F855)
DrawText(""..sdmg[__-1], 10, barPos.x+4+offset-off, barPos.y+5-10*_, self.colors[__])
DrawText(""..getdmg(spell,unit), 10, barPos.x+4+offset-off, barPos.y+5-10*M, 0xDFFF5858)
offset = offset - off
offset = offset - off
end
end
end
end
end
end
end
end
end
end