OnTick(function(myHero) local target = GetCurrentTarget() local CutBlade = GetItemSlot(myHero,3144) local bork = GetItemSlot(myHero,3153) local ghost = GetItemSlot(myHero,3142) if mainMenu.Combo.Combo1:Value() then if CutBlade >= 1 and ValidTarget(target,550+50) and mainMenu.Items.useCut:Value() then if CanUseSpell(myHero,GetItemSlot(myHero,3144)) == READY then CastTargetSpell(target, GetItemSlot(myHero,3144)) end elseif bork >= 1 and ValidTarget(target,550+50) and mainMenu.Items.useBork:Value() then if CanUseSpell(myHero,GetItemSlot(myHero,3153)) == READY then CastTargetSpell(target,GetItemSlot(myHero,3153)) end end if ghost >= 1 and ValidTarget(target,GetRange(myHero)+50) and mainMenu.Items.useGhost:Value() then if CanUseSpell(myHero,GetItemSlot(myHero,3142)) == READY then CastSpell(GetItemSlot(myHero,3142)) end end if CanUseSpell(myHero,_Q) == READY and ValidTarget(target, 550) then CastTargetSpell(target, _Q) end if CanUseSpell(myHero,_W) == READY and ValidTarget(target, 3000) then CastTargetSpell(target, _W) end end )
What is wrong?