diff --git a/Js/Player.js b/Js/Player.js index 82fc4a2..ebba14a 100644 --- a/Js/Player.js +++ b/Js/Player.js @@ -58,10 +58,10 @@ class Player { //They use this to set the sprite set for a charater but have an alternate name displayed if(c.Arg2 && c.Arg2.toLowerCase().includes("/; + let reg = //i; let match = c.Arg2.match(reg); c.Arg2 = c.Arg2.replace(reg, ""); - c.Character = match[0].match(/(?<=)/)[0]; + c.Character = match[0].match(//i)[1]; } catch (error) { console.log(error); } @@ -1212,6 +1212,10 @@ class Player { if(!this.currentCharacters[c]) { continue; } if(this.currentCharacters[c].charName === cur.Arg1 || this.currentCharacters[c].charName === cur.Character) { let nameToUse = this.currentCharacters[c].character.NameText; + //If cur.Character is set that means the line had a