if(istype(target,/mob/Player))
var/mob/Player/p = target
p.updateHealth()
Problem description:
No problem as such; it works fine and as intended.
However, it seems a bit clumsy. If target is of type Player, why should I have to create a mob of type Player just to access its procs? I've already 'proved' that target is a player. Is there a better way of doing this or am I just being fussy?
Operator : basically ignores type and hopes there will be proc/verb/var.