mob/Jutsu/verb/Summon()
set category = "WOOT"
set name="Summon"
var/list/animal = list("Gama","None")
var/animall = input(src) in animal
switch(animall)
if("Gama")
if(usr.maxcp >= 800)
view(4)<<"[usr]: Die!"
sleep(10)
usr.cp -= usr.maxcp
usr.stamina -=usr.stamina
view(4)<<"Gama Appears!"
var/mob/enemy/Gama/M = new/mob/enemy/Gama (locate(usr.x+1,usr.y,usr.z))
M.owner=usr
sleep(300)
del(M)
else
src<<"You need over 800 CP to summon Gama!"
return
mob/verb/Attack(mob/M in get_step(usr,dir))
set name="Punch"
if(M.owner==src)
return
else
world<<"DEBUGGED!"
Problem description: The summoned gama attacks its owner. How can I stop this?
I think it's in this line cause if im right when u click the verb it's sending the attack to usr and u are the usr lol so ur ganna have to make it (mob,dir)) ir somthing like that.