function Start()
hero = GetAttackerHero
UnitCastGlobalSpell(hero, 54)
end
It says in the panel "wrong type of argument 1 when calling function UnitGlobalCast", what's wrong?
New here? I'm Roha — want a quick tour?
Added 8 minutes ago
function Start()
hero = GetAttackerHero()
UnitCastGlobalSpell(hero, 54)
end
It says in the panel "wrong type of argument 1 when calling function UnitGlobalCast", what's wrong?
function rndcast()
while 1 do
SetGameVar('spell', random(5))
local index = GetLastSavedCombatIndex()
while index == GetLastSavedCombatIndex() do
sleep(10)
end
end
end
startThread(rndcast)
And in the combat script, replace the line:
yes, by the way, mana shortage is also an issue, I checked =)
And is it possible to make spells free while still using autocast?