Hello there !
After days trying to figure out what I messed with my Lua functions when switching all my events to per unit events (before switching to OOP), I found out this very serious bug.
The specific unit selected (same issue with deselected) aka "EVENT_UNIT_SELECTED" does return the Owner of the Selected unit instead of the Selecting player, like all other UNIT_SELECTED events.
I tried a quick GUI trigger on a random test map :
After days trying to figure out what I messed with my Lua functions when switching all my events to per unit events (before switching to OOP), I found out this very serious bug.
The specific unit selected (same issue with deselected) aka "EVENT_UNIT_SELECTED" does return the Owner of the Selected unit instead of the Selecting player, like all other UNIT_SELECTED events.
I tried a quick GUI trigger on a random test map :
-
Select Test
-
Events
-
Unit - Priestess of the Moon 0029 <gen> Is selected
-
-
Conditions
-
Actions
-
Game - Display to (All players) the text: (Name of (Triggering player))
-
-