//Target Control
mob
Click()
var/C = src
if (usr == src)
return 0
if(src==usr.target)
return 0
else
usr:Target(C)
return 1
//Attack and Defend Controls
client
Click(object,location,control,params)
var/list/p = params2list(params)
if(p["right"]) //If it was a right-click, then defend
usr.defend()
else //If not a right-click....
if(..()) //If overriden by other procs(namely the targetting proc), return
return
else //If not overriden, initiate an attack
usr.attack()
Problem description:
So this is the bit of code I came up with to allow players to use their mouse for a few basic combat verbs. Basically clicking a mob targets it, clicking anywhere initiates an attack, and right-clicking makes them defend.
Now, there are no loose ends within the verbs themselves because using the verbs without mouse clicks causes no issues. However, after using a mouseclick to iniate any of these verbs, I find my mob's movement frozen. I can do anything but move. Does anyone have any clue as to what may be causing this?