Quote from melchior5387there aren't names I use in the addon it's to be clear in the the forum
He was suggesting that you do this:
for i=1,GetNumBattlefieldScores() do local name,_,_,_,_,_,_,_,class = GetBattlefieldScore(i); if name == CarrierName then table.class = class; end end
strmatch isn't really designed to do what you're using it for. It could potentially give erronious results.....for example
name = "Babubbu"
CarrierName = "bubbu"
strmatch would return something other than nil even though they aren't the same.
Not saying that's your problem but it's going to be a source of bugs. It's it's very likely that somewhere in that loop or related code it's leading to the issue.
It would also explain why it "used" to work, which is because you've been lucky with the names of the players in the battlefield!