m
Move page script moved page UnitFlag to WoW:UnitFlag without leaving a redirect
m (added a link to UnitGUID + typos) |
m (Move page script moved page UnitFlag to WoW:UnitFlag without leaving a redirect) |
||
| (6 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapitype}}<br> | {{wowapitype}}<br /> | ||
==Constants== | ==Constants== | ||
{| class="darktable" | {| class="darktable" | ||
| Line 17: | Line 17: | ||
|COMBATLOG_OBJECT_TYPE_NPC||0x||0||0||0||0||0||'''8'''||0||0 | |COMBATLOG_OBJECT_TYPE_NPC||0x||0||0||0||0||0||'''8'''||0||0 | ||
|- | |- | ||
|class="alt"|COMBATLOG_OBJECT_TYPE_PLAYER||0x||0||0||0||0||0|| | |class="alt"|COMBATLOG_OBJECT_TYPE_PLAYER||0x||0||0||0||0||0||4||0||0 | ||
|-align="center" | |-align="center" | ||
!colspan="10"|Controller | !colspan="10"|Controller | ||
| Line 125: | Line 125: | ||
*A player who is dueling you is '''0x0548''' (A hostile player controlled by an outsider physical human being) | *A player who is dueling you is '''0x0548''' (A hostile player controlled by an outsider physical human being) | ||
*A player who was mind controlled by another player that attacks you is '''0x1148''' (A hostile pet who is controlled by an outsider player) | *A player who was mind controlled by another player that attacks you is '''0x1148''' (A hostile pet who is controlled by an outsider player) | ||
**Since '''0x1148''' can also be an enemy | **Since '''0x1148''' can also be an enemy player's pet you need to check the [[API UnitGUID| unit GUID]] to know if it's an enemy pet or a player character. | ||
*A player who was charmed by a NPC is '''0x1248''' (A hostile pet controlled by an outsider NPC) | *A player who was charmed by a NPC is '''0x1248''' (A hostile pet controlled by an outsider NPC) | ||
if bit.band(UnitFlag, COMBATLOG_OBJECT_CONTROL_PLAYER) > 0 then | |||
print("Controller: a player") | |||
end | |||