I've tried it and it works, but that was kinda expected. Still good to be certain though.
So the question is, how is this possible, when I do the exact same thing in another trigger and it doesn't give the same result.
First off, Pyro's point about no relevant WC events is still really good. I'm not sure what in your houdini code would cause an event to fire
But im not sure what you mean by kinda expected, i still think this is an important clue. It suggests that execution is switching to entirely different code when it was supposed to just be enumerating the group. That different code is what's likely overwriting the value of the unit to be the lord of the seven, not the code you originally posted
I'd suggest reverting back again, and then putting a debug message before
every line you set the unit global, to see which of those lines (if any) is actually the one running unexpectedly. Because everything seems to revolve around the lord of the seven dude, i'd start with that functionality and expand my search testing every handful of debug messages. Essentially what you're looking for is:
2 Magic Arts Master
(Picked) Lord of the Seven
2 Lord of the Seven
to become this:
2 Magic Arts Master
(Picked) Lord of the Seven
LOLOL I wasn't supposed to fire right now!!
2 Lord of the Seven
Tried creating a new unit and it works. What does this mean?
It has functioned properly before I'd like to mention
Did you fully replace the original lord of the seven unit, triggers too? This clue has a few different explanations, the most likely one being that the original lord of the seven has related functionality/triggers that are contributing to the problem, while the new one doesn't. More complicated answers are still possible, but i think this is the most likely