mob
verb
PK_AoETest_a()
var/mob/M
if(usr.psidelay == 1)
usr << "\red Please wait before using PSI again."
return
for(M in view(usr))
if(M.key != usr.key)
M.overlays+=image(icon='icon/pkflash.dmi',icon_state="explosion")//Overlay
////EFFECT//////////////////////////////////////////////////////////////
var/damage = src.PSI + 19 - M.defense
if(M.defense >= damage)
damage = 0
M.hp -= damage
M.updateHealth()
src.exp += M.giveexp
src.level_up()
view(M) << sound("sound/flash.wav",,,3,100)
////////////////////////////////////////////////////////////////////////
Problem description:I'm just messing around with different thing and i came up with this AoE verb.Well this peice of AoE coding only effects each mob one at a time when the user uses it. Any idea why?