PK_Rockin(mob/M in get_step(src,src.dir))
set category = "PSI"
if(usr.psidelay == 1)
usr << "\red Please wait before using PSI again."
return
if(M.pvp == "No")
usr << "\red That player has Pvp turned off!"
return
if(usr.PP >= 15)//PP Cost
usr.PP -= 15//PP Cost
M.overlays+=image(icon='icon/pkflash.dmi',icon_state="explosion")//Overlay
////EFFECT//////////////////////////////////////////////////////////////
var/damage = src.PSI + 25 - 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)
////////////////////////////////////////////////////////////////////////
view() << "\red[usr] used PK Rockin' on [M]! It quakes them for [damage] hp!"//Tells the target
usr.PSI_Use += 1
checkpsi()
usr.psidelay()
M.overlays-=image(icon='icon/pkflash.dmi',icon_state="explosion")
M.death_check(src)
else
src << "\red Not enough PP!"
return
Instead of making it effect people in get_step. How can i make it so it damages everyone around the user?