There was only one place where I wasn't sure what the code was trying to do, and I didn't think it hurt to comment it out. It is in the isVisible() method:
/** Not certain what is being check here... if the token is selected, then it is visible?
if (combatant._controlled) {
return true;
}
*/
_controlled doesn't exist anymore for the TokenDocument.
There was only one place where I wasn't sure what the code was trying to do, and I didn't think it hurt to comment it out. It is in the isVisible() method:
_controlled
doesn't exist anymore for the TokenDocument.