Module unit.Blacklist
Handles blacklisting of units for various reasons (e.g., untargetable, immune).
Functions
| Unit:IsBlacklisted (self) | Checks if a unit is blacklisted based on its NPC ID or specific conditions. |
| Unit:IsFacingBlacklisted (self) | Checks if a unit is currently facing blacklisted. |
| Unit:IsLoSBlacklisted (self) | Checks if a unit is currently Line-of-Sight (LoS) blacklisted. |
Functions
- Unit:IsBlacklisted (self)
-
Checks if a unit is blacklisted based on its NPC ID or specific conditions.
Parameters:
- self Unit The unit object.
Returns:
-
boolean True if the unit is blacklisted, false otherwise.
- Unit:IsFacingBlacklisted (self)
-
Checks if a unit is currently facing blacklisted.
A unit is facing blacklisted if a "SPELL_FAILED_UNIT_NOT_INFRONT" error occurred recently for it.
Parameters:
- self Unit The unit object.
Returns:
-
boolean True if the unit is facing blacklisted, false otherwise.
- Unit:IsLoSBlacklisted (self)
-
Checks if a unit is currently Line-of-Sight (LoS) blacklisted.
A unit is LoS blacklisted if a "SPELL_FAILED_LINE_OF_SIGHT" error occurred recently for it.
Parameters:
- self Unit The unit object.
Returns:
-
boolean True if the unit is LoS blacklisted, false otherwise.