Click(atom/a)
var/obj/display/o=a
world << o.targ.type
world << ttype
world << istype(o.targ,ttype)
if(istype(o,/obj/display))
world << "Doing"
if(istype(o.targ,ttype))
world << "Boing"
if(spell) if(mob.canact)
world << "ping"
spell.Spell(mob,o.targ,ignore_mp,chargeobj)
ttype=null
spell=null
ignore_mp=null
chargeobj=null
Problem description:
This code is outputting the following:
/mob/monster/goblin
/mob
0
Doing
Surely /mob/monster/goblin is derived from /mob? This is bound to be a simple error, but I can't tell what I've done wrong.
(You can check using istext().)