WoW:API UnitIsPlayer: Difference between revisions
Jump to navigation
Jump to search
m
If the return values are true or nil, then the second half of the IF block will never fire, so I removed it. Could have changed it to "==", but then there would be two calls to UnitIsPlayer()
No edit summary |
m (If the return values are true or nil, then the second half of the IF block will never fire, so I removed it. Could have changed it to "==", but then there would be two calls to UnitIsPlayer()) |
||
| Line 21: | Line 21: | ||
if (UnitIsPlayer(UnitId)) then | if (UnitIsPlayer(UnitId)) then | ||
--Do something here | --Do something here | ||
else | |||
--Do something | --Do something else | ||
end | end | ||