mob
proc
Expelliarmus(mob/Caster,mob/M)
if(M)
if(Caster.equiped)//21
M.equiped = 0//22
var/obj/wand/W = locate() in M
if(W)
W.loc = locate(M.x-2,M.y-1,M.z)
M << "Your wand was thrown from your hand by [Caster]!"
else
Caster << "You'r attacking a defenseless Wizard!"
else
Caster << "Bug...report to N1ghtW1ng"
Basically what I am trying to do is to check to see if the Caster's wand is equipped, if it is it it will make M's wand go to a location near M. I'm getting the errors
loading HarryPotter.dme Spells.dm:21:error:Caster.equiped:undefined var Spells.dm:22:error:M.equiped:undefined var
I labeled the errors with a comment. I think it would be easy to solve..but I have fooled around with it and can't seem to get it to work right. Thanks!