/HCWarn

PVP warning addon for World of Warcraft: Vanilla

Primary LanguageLuaMIT LicenseMIT

Description

This addon helps prevent accidental PvP flagging and warns when flagged.
The addon will not function while in instances.

Features

You can toggle features of the addon by using the /hcwarn or /hcw command.

Feature Description
Player Warning If you are PvP flagged
  • A warning will be displayed
  • A screen border will be shown
  • A PvP sound will be played.
  • Target Warning The addon includes a target setting "/hcwarn target" to allow or prevent you from targeting PvP flagged units.
    The setting is on (allow) by default.

    If the target setting is on or you are PvP flagged
  • If you are targeting a PvP flagged NPC with the risk of getting flagged, a warning will be displayed.

  • If the target setting is off
  • If you attempt to target a PvP flagged NPC with the risk of getting flagged, the target will be cleared unless you are PvP flagged.
  • Mouseover support The mouseover mod included in ShaguTweaks-Mods supports HCWarn.
    The mod will prevent any /stcast macros from casting on a PvP flagged NPC with the risk of getting flagged when outside instances unless you are PvP flagged.

    Macros to prevent casting on PvP units

    If you are not using ShaguTweaks-Mods you can prevent casts on PvP flagged units by using the nopvp condition in Roid-Macros.

    /cast [@mouseover nopvp nodead] Heal
    

    You can also use not UnitIsPVP("target") in a macro without addons.

    if not UnitIsPVP("target") then CastSpellByName("Heal") end