ID:261609
 
Here is the attack code, can someone tell me why I can't see the projectile when I use it? (Yes, the icon name and state are right)

mob/verb/Flipendo(mob/M in oview(5))
if(!src.can_shoot)
return
if(src.reload_time)
return
var/turf/D = M.loc
var/obj/O = new(src.loc)
O.icon= 'spells.dmi'
O.icon_state= "Flipendo"
O.dir = src.dir
src.reload_time = TRUE
spawn(10) // The amount of time between shots
src.reload_time = FALSE
while(O && O.loc != D.loc)
var/turf/Y = get_step_towards(O, D)
if(Y.density) // Add in a ' || Y.type != /turf/Water' if you want the projectiles to move over water
del(O)
break
for(var/mob/N in Y)
if(N != src)
N.HP -= 10 // Damage amount
del(O)
break
// You can toss in your own death code, right?
step_towards(O, D)
sleep(5) // The speed of the projectile

I'm doing the death code later, so ignore that.
You're probably made a mistake in the spelling of the icon_state. Remember that it's case sensitive.
In response to Malver (#1)
Not that... I checked, double checked, even triple checked it... same with the icon file.
In response to Eagle Madigan (#2)
correction, it doesn't work except targeting... no attack comes out at all.