Sorry about the double post. We caused a new error, yay! err, I mean... booo.
So issue, when you try to change the target name to "yourself" it thinks you want to buff the player named yourself (and incidentally there is one), and not you.
Suggestion:
change line 296 to this.target = null;
So issue, when you try to change the target name to "yourself" it thinks you want to buff the player named yourself (and incidentally there is one), and not you.
Suggestion:
change line 296 to this.target = null;