!NEW INFORMATION BELOW!
This library is packaged together with all of Bitten's SpellFlash class modules now. You do not need to download this addon separately to make any of them work. If you had it install previously, you can safely delete it now. The only change will be the key bindings (if you used them); see this website for more info on that.
!NEW INFORMATION ABOVE!
This is a library to make SpellFlash modules easier to create. Please see the FAQ before posting a question. If that doesn't address your issue, or you have a suggestion to improve this addon, please either leave a comment or create a ticket.
If you are an addon author and want to learn more, read on. If you are not an addon author, there is nothing here you need to worry about - read on only only if you're curious.
Help with cooldown and (de)buff timing
There are often times when want to know whether a certain (de)buff will be present when it's time to cast the next spell. If you use a naive approach of simply checking for the presence of a buff now, and it falls off half way through your current cast, you may have been flashing the wrong spell. There are clones of many (de)buff and cooldown checking functions that allow you to get the information you need easily. For example this library function:
function c.GetMyDebuffDuration(name, noGCD) return s.MyDebuffDuration(c.GetID(name)) - c.GetBusyTime(noGCD) end
Passing a value for noGCD will cause it to ignore the global cooldown, which is useful for spells that are not on the gcd. Otherwise it uses the longer of the gcd and your current cast.
International support without cluttering your code with spell IDs
There are clones of several often-used SpellFlash functions that translate from the spell name you pass to their spell id. For example, you can replace calls that look like
With calls that look like
Without fear of your code breaking when used on a non-English client. There is also a function, c.GetID("name"), that you can use if a cloned function does not exist in the library. Note that for these functions to work, you must have the spell or buff defined in a.spells.
There are several other little features, like simplifying your Spam function while supporting options to turn rotations on and off. Feel free to browse the source to learn more. All of Bitten's SpellFlash modules use this library, so any of them provide examples of how to use it.
- Bitten's SpellFlash: Atonement
- Bitten's SpellFlash: DK
- Bitten's SpellFlash: Druid
- Bitten's SpellFlash: Hunter
- Bitten's SpellFlash: Mage
- Bitten's SpellFlash: Monk
- Bitten's SpellFlash: Pally
- Bitten's SpellFlash: Priest
- Bitten's SpellFlash: Rogue
- Bitten's SpellFlash: Shaman
- Bitten's SpellFlash: Warlock
- Bitten's SpellFlash: Warrior
- Date created
- Apr 28, 2012
- Last update
- May 16, 2013
- Development stage
- All Rights Reserved
- Curse link
- Bitten's SpellFlash Library
- Recent files
- Required dependency