Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API UnitIsCivilian
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{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). isCivilian = UnitIsCivilian(unit) == Parameters == === Arguments === :;unit : String - The [[API TYPE UnitId|UnitId]] of the unit to check (Tested with hostile "target") === Returns === :;isCivilian : Flag - Returns 1 if the unit is a civilian, nil otherwise. === Example === 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.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Ambox
(
edit
)
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Removedapi
(
edit
)
Template:Tocright
(
edit
)
Template:WoW/removedapi
(
edit
)
Template:Wowapi
(
edit
)