desc = function () return { image = 3, imageFile = "spellsIcons/rogue.png", name = "KunaiThrow_Name", info = "KunaiThrow_Info", magicAffinity = "Rogue", targetingType = "self", level = 2, castTime = 0.01, spellCost = 5 } end
cast = function(self, spell, caster) local n = spellTier(caster) -- Returns 1, 2, or 3 based on caster skill level local enemies = caster:visibleEnemies() if enemies == 0 then return false end local ownPos = caster:getPos() for i = 1, n do local tgt = caster:randomEnemy() RPD.zapEffect(ownPos,tgt:getPos(),"Kunai") tgt:damage(math.random( n, n + caster:lvl()*n ), caster) end return true end
<string name="KunaiThrow_Name">Kunai Throw</string> <string name="KunaiThrow_Info">This Deadly Kunai throw will be done extremely fast, so fast that you won't even be able to select a target. True Masters able to throw more than one Kunai at once.</string>