m
Move page script moved page API UnitIsCivilian to WoW:API UnitIsCivilian without leaving a redirect
No edit summary |
m (Move page script moved page API UnitIsCivilian to WoW:API UnitIsCivilian without leaving a redirect) |
||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} | |||
{{removedapi|≤ 3.1.3|Dishonorable kills were removed from the Honor system}} | |||
Determine whether a unit is a civilian (low level enemy faction NPC that counts as a dishonorable kill). | Determine whether a unit is a civilian (low level enemy faction NPC that counts as a dishonorable kill). | ||
| Line 13: | Line 15: | ||
=== Example === | === Example === | ||
if (UnitIsCivilian("target")==1) then DEFAULT_CHAT_FRAME:AddMessage("Target is a civilian", 1, 1, 0) end; | if (UnitIsCivilian("target")==1) then DEFAULT_CHAT_FRAME:AddMessage("Target is a civilian", 1, 1, 0) end; | ||
=== Notes === | |||
* No longer used by FrameXML as of 2.0, because of the new honor system. | |||