oUF SpellRange

Unit Frames Login to Add Favorites
  • 0 Likes
  • World of Warcraft
  • 130 Monthly Downloads
  • Supports: 4.3
  • 13,050 Total Downloads
  • Updated 11/29/2011 6:24:59 PM
  • Created 6/6/2009 10:44:59 PM
  • 9 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: GNU General Public License version 3 (GPLv3)
  • Newest File: oUF_SpellRange 4.3.0.1
or
Support development! **
Click here to lend your support and make a donation at www.pledgie.com !

About oUF SpellRange

oUF SpellRange is an element plug-in for Haste's oUF unit frame framework that fades unit frames when out of casting range.  Unlike the default oUF range fading, SpellRange works for any hostile or friendly targets, rather than group members only.  You must have oUF and a compatible layout for oUF SpellRange to do anything.

Usage

The settings for implementing SpellRange are intentionally the same as the default Range element, because the two elements cannot work together.  SpellRange will disable the Range element for frames where both are enabled.

To enable the SpellRange element:

self.SpellRange = {
-- At least one set of required properties, listed below
};

Either of the following sets of properties is required:

  • --- Takes priority over .insideRange/.outsideRange, and fires when changing between them.
    function self.SpellRange.Update( self, InRange )

    end

    OR

  • self.SpellRange.insideAlpha = 1.0; -- Frame alpha when in range
    self.SpellRange.outsideAlpha = 0.4; -- Frame alpha when out of range

Don't forget to add oUF_SpellRange as an optional dependency of your layout.

Note: SpellRange is necessarily slower than the default Range element, so use it with caution for large groups like raids or parties.  The default Range element will always work for "player", "pet", and any unit that passes UnitPlayerOrPetInParty/UnitPlayerOrPetInRaid, however it is limited to 38 yard range.

  • 4.3.0.1: Bumped TOC for 4.3.
  • 4.2.0.1: Bumped TOC for 4.2.
  • 4.1.0.1: Bumped TOC for 4.1.
  • 4.0.0.1:
    • Now adds a :ForceUpdate method and .__owner property to .SpellRange elements to conform with the oUF 5 API.  If you intend to use these, you can no longer recycle a generic .SpellRange element table.
    • Spells updated for Cataclysm pre-release patch 4.0.1.
  • 3.3.5.1:
    • Now checks for a .SpellRange table containing properties similar to oUF 1.4's updated Range element.  Not backwards compatible!
    • Added support for multiple spells per class, choosing the first known spell from a list.
  • 3.3.0.2: Added support for embedded installs.
  • 3.3.0.1: Bumped TOC for 3.3.
  • 3.2.0.2: Removed “Raise Ally” as a range check spell for allies, since it only works for raid/party members.
  • 3.2.0.1: Uses the new IsSpellKnown API instead of constantly querying GetSpellInfo, as it is dramatically faster.
  • 3.0.9.6: Fixed error for classes that had no help or harm spell.
  • 3.0.9.5: Low level players that haven't trained their spells yet will now properly see 28 yard ranges.
  • 3.0.9.4:
    • No longer enables itself for frames that don't request SpellRange.
    • Now supports a :SpellRangeOverride( InRange ) method in place of the in and outside alpha properties.
  • 3.0.9.3: Correctly sorted priest spells into the HelpID and HarmID tables.
  • 3.0.9.2: Shows proper range of player and group members while on a flightpath for players with no ranged buff spells.

Addon Packs Containing This...

Comments

  • #2
    Just a note for users, the following error from version 3.3.5.1+ must be handled by the author of your oUF layout:

    "oUF layout addon using invalid SpellRange element."

    Please point them to this download page, which has instructions on how they can update their layout.
  • #1
    i get a error once in a while and sometimes it doesn't work but hey its great
  • To post a comment, please login or register a new account.
Learn how to disable ads
Learn how to disable ads
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »