Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!
|This is no longer a part of the World of Warcraft API.
Determine whether a unit is a civilian (low level enemy faction NPC that counts as a dishonorable kill).
isCivilian = UnitIsCivilian(unit)
- String - The UnitId of the unit to check (Tested with hostile "target")
- Flag - Returns 1 if the unit is a civilian, nil otherwise.
if (UnitIsCivilian("target")==1) then DEFAULT_CHAT_FRAME:AddMessage("Target is a civilian", 1, 1, 0) end;
- No longer used by FrameXML as of 2.0, because of the new honor system.