mob/Stat()
statpanel("Skills")
stat(src.Jutsus)
obj/Cards
icon='Cards.dmi'
layer=MOB_LAYER+1000
var/list/Jutsu=list()
Click()
if(src.Owner==usr)
usr<<"You click [src]. Select an Attack to use from the Skills tab."
usr.Jutsus+=src.Jutsu
return
Problem description:Problem is the Rasengan Obj spam adds into the skills panel.
But i get the following runtime:
runtime error: type mismatch: Rasengan (/obj/Cards/Skills/Rasengan) += Rasengan (/obj/Cards/Skills/Rasengan)
proc name: Click (/obj/Cards/Click)
source file: Main.dm,294
usr: Runney001 (/mob)
src: Naruto (/obj/Cards/MySlots/Slot1)
call stack:
Naruto (/obj/Cards/MySlots/Slot1): Click(null, "mapwindow.map", "icon-x=19;icon-y=19;left=1;scr...")
line 294 is usr.Jutsus+=src.Jutsu
Any assistance would be greatly appreciated. Thanks in advance
Edit: Interestingly enough, despite this Runtime error only one Rasengan Obj is added to the Skills