(I’m using Javascript and this has happened on Bonemender and Oasis.)
Is there some rule against starting your code with functions? I tried to build a couple functions to keep things tidy and kept getting an odd error:
The code:
function healUp() {
var pal = this.findNearest(this.findFriends());
if (this.canCast("regen", pal) && this.distanceTo(pal) < 10) {
this.cast("regen", pal);
}}
The error:
Upper or lowercase problem. Try this.findFriends()
Line 2: undefined is not a function.
That was from Bonemender. The error on Oasis was the same except it was for a this.say.
So can anyone tell me: bad coding or ghost in the machine?
Thanks!