proc/BlasT()
if (MP < 2+(blastlevel*2))
usr << "Not enough MP"
else
usr << "You shoot your Blast"
MP -= 3+(blastlevel*2)
var/obj/beam = new/obj/spells/firebolt
beam.dir = usr.dir
beam.loc = usr.loc
while(beam)
step(beam,beam.dir)
var/turf/T = beam.loc
if(T.density == 1)
del(beam)
break
for(var/mob/M as mob in T)
if(istype(M,/mob/enemies))
var/damage = round(((rand(1+(blastlevel*3),3+(blastlevel*3)))*((Intelligence/100)+1)),1)
M.HP -= damage
usr << "You Blasted the enemy for \blue[damage] damage"
del(beam)
DeadEnemy(M)
sleep(1)
Problem description:
ok this is my first time using the developer forums to ask for help on a code problem (dont like to admit when i cant do something) but the problem is this everything works with the projectile except when it hits the monster it dosent hit the monster it just keeps going like the monster has no density but it does and i dont even know if the damage would work because it dosent hit the monster help?