Get an Epic Experience with Premium

Bitten's SpellFlash Library

Libraries Login to Add Favorites
  • 29 Likes
  • World of Warcraft
  • 13,476 Monthly Downloads
  • Supports: 5.4.8
  • 5,336,555 Total Downloads
  • Updated 06/06/2014
  • Created 04/28/2012
  • 466 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: All Rights Reserved
  • Newest File: 50400.4.2
or
Support development! **
Donate

About Bitten's SpellFlash Library

When you download one of Bitten's SpellFlash class modules, it comes with a copy of this addon. You do not need to download this addon separately. If you have it installed, you can delete it. That is, of course, unless you like to install the "nolib" versions of addons - but in that case you should know what you are doing and I don't need to give you any more instruction. :)

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

s.Buff(74434--[[Soulburn]], "player")

With calls that look like

c.HasBuff("Soulburn")

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.

Learning More

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.

Version 50400.4.2

This version only affectly Feral Druids.

  • Small tweak for flashing forms in c.DelayPriorityFlash.

Version 50400.4.1

  • Added flashing for WoW's 9th Anniversary Celebration Package.

Version 50400.4.0

This version is required for the latest Death Kight release.

  • Added c.Flashable().

Version 50400.3.0

This version only adds convenience flashing - it is not a required update for any class.

  • Added flashing for some new foods and items from the Timeless Isle.

Version 50400.2.0

This version supports the latest Hunter release.

  • c.Flashing{} now contains an entry for every spell that is flashing.
  • c.IsTanking() now accepts a "unit" argument.
  • Removed c.CheckFirstForTaunts().

Version 50400.1.7

Updating to this version is not necessary. It causes flashes for the more new food buffs.

Version 50400.1.6

Updating to this version is not necessary. It causes flashes for the new Noodle food buffs.

Version 50400.1.5

Among other things, this is a bugfix release. Everyone should update.

  • c.GetChargeInfo() now takes into account whether the spell is currently casting.
  • The CastSucceeded_FromLog callback now passes more arguments.
  • Bugfix - c.HasDebuff(), c.HasMyDebuff(), and c.GetPowerPercent() had problems.

Version 50400.1.4

This version supports the latest Shaman release.

  • Added c.GetPowerPercent()

Version 50400.1.3

This version supports the latest Rogue release.

  • Added a new event callback for rotations: CastSucceeded_FromLog

Version 50400.1.2

This version supports the latest Pally release.

  • c.DelayPriorityFlash() returns a second value: true if the flashing spell is only a predictor.

Version 50400.1.1

This version breaks backward compatibility for the Druid, Hunter, and Monk modules.

  • Added c.GetChargeInfo().
  • c.RegisterForFullChannels() accepts a new argument indicating that the channel is indicated by a buff, rather than the normal channeling mechanism (read: Spinning Crane Kick)
  • Slight improvements to c.GetBusyTime() and c.GetPower().
  • The Cost entry of casting info tables is now itself a table from power type => cost.

Version 50400.1.0

  • Slightly smarter determination of Target GUID for the CastStarted, CastFailed and CastSucceeded callbacks.
  • All the functions that tested for a buff or its duration now takes a list of spells that apply it, rather than just one.
  • c.GetPower() now uses the regen of your primary power type if not specified.
  • c.GetQueuedInfo() now favors spells that are on the GCD.

Version 4.13.7

This version supports the latest releases for tanking classes.

  • Added c.COMMON_TANKING_BUFFS.
  • c.FlashMitigationBuffs will now match the spell id of buffs when checking if one is already up, rather than the name.

Version 4.13.6

WARNING: If you install no nolib versions of my addons, you will have to download Bitten's Utils now. If you don't know what I'm talking about, you can ignore this, and even deleted Bitten's SpellFlash Library, since it comes packaged with your class module(s) anyway.

  • Splitting some non-SpellFlash-specific functions off into a different library: Bitten's Utils, for use with other addons.

Version 4.13.5

This version supports the latest Druid release.

  • Bugfix: c.DelayPriorityFlash() was not respecting the AoEColor flag.

Version 4.13.4

This version fixes an issue for Fire Mages who use Presence of Mind. There may be other classes/specs which had the same bug, but I'm not sure.

  • Bugfix: no longer consider an aura pending if it was reported to be applied before the spell was reported to be cast.

Version 4.13.3

This version supports the latest Warrior release.

  • Added a callback for rotations: Avoided().

Version 4.13.2

  • Oops - forgot something in 4.13.1.

Version 4.13.1

  • c.PriorityFlash() and c.DelayPriorityFlash() now accept an AoEColor flag in the rotation.

Version 4.13.0

This version supports the latest Paladin release.

  • Added c.InDamageMode().
  • Added c.ToggleDamageModeInGroups().

Version 4.12.0

  • Added c.HasSpell().
  • c.RegisterAddon() now causes it to flash Healthstones.
  • c.DelayPriorityFlash() will no longer flash optional spells with a longer delay than the main spell.

Comments

First Previous Page 7 of 12 Next Last
  • #101

    I just tried it on my druid and did not experience the same issue.  I tried with both the default action bars, and with Bartender.  Are you using some other action bar addon, perhaps?

    Last edited by Xemnosyst on 11/8/2012 11:36:42 PM

    Author of Bitten's SpellFlash.

  • #106

    My setup, and what I have to do to recreate it pretty consistantly:

    Humanoid form:
    1. Moonfire
    2. Wrath
    3. Entangling Roots
    4. Faerie Fire
    5. Hurricane

    Cat form:
    1. Rake
    2. Mangle
    3. Swipe
    4. Rip
    5. Ferocious Bite
    6. Tiger's Fury
    7. Berserk
    8. null
    9. Thrash
    0. Ravage
    -. Pounce
    =. Shred

    Kill something putting 5 combo points on with Mangle; spend combo points with Ferocious Bite. Shift into humanoid form, and pull using Faerie Fire; before the GCD (global cool down) is up, start spamming cat form.

    This almost always causes the buttons to disappear.

  • #105

    I've tested Inline Aura with everything but SpellFlash turned on, and it worked just fine.

    This doesn't mean that SpellFlash is the one at fault... it very well could be Inline Aura has a bug, and that the 3.15.3 release of Bitten's SpellFlash Library has brought forth the bug.

    (Remember, everyone was playing nicely in releases 3.15.2 and before)

    Last edited by QuinicAcid on 11/9/2012 7:11:43 PM
  • #104
    Quote from QuinicAcid »

    After testing with all my addons, it's Inline Aura that's causing the problems.

    Inline Aura by itself, or only in combination with this library?

    Author of Bitten's SpellFlash.

  • #103

    After testing with all my addons, it's Inline Aura that's causing the problems.

  • #102

    I will try turning off my other addons one by one to see if they may be conflicting... but here is the list:

    Ackis Recipe List
    ButtonForge
    CookingHelper
    Gnosis
    GTFO
    Inline Aura
    Minimap Button Frame
    Skada
    Successful Interrupt Announcer
    TellMeWhen
    VuhDo

    Also, the only SpellFlash items that I have enabled are:
    BittensSpellFlash_Druid
    BittensSpellFlashLibrary
    SpellFlashCore
    SpellFlash

    The only addons that affect buttons or bars are ButtonForge (just adds extra bars, which Spellflash can't reach anyways) and InlineAura (used for inbutton timers and counters). I suspect it may be InlineAura, though. I'll start by turning everything off, and turning them on one by one and see what I find.

    Last edited by QuinicAcid on 11/9/2012 5:07:14 PM
  • #99

    We want a choice to keep Blizzard's proc highlighting alongside Spell Flash. Why force the change on us instead of giving us a choice? I'm very much used to the blizzard proc highlighting and I find it unnerving to play without it. Good luck with your addon, I find it impossible to use now that it dominates my bars.

  • #108

    I agree.  I rely heavily on the default blizz ui proc flashing.  I find it very handy in conjunction with spellflash, as I don't rely solely on spellflash for my next cast, I use it more as a guide.  I've read the last section of the FAQ.  Tried other options, but when it comes to proc notification, nothing comes close to being as good as the default blizz flashing (for me). 

    It's a shame it isn't a toggle'able option, as I previously really enjoyed spellflash.  Was very useful, particularly for interrupts.

    Last edited by skaali23 on 11/12/2012 8:16:16 PM
  • #110

    Please try the beta and let me know how it works for you.

    Author of Bitten's SpellFlash.

  • #97

    Is there anyway to change the spellslash animation? it hurts my eyes

  • #98

    Have you checked out the options for the size & default color of the flashing?  If those options aren't enough, it is really a question for the main SpellFlash addon.  I make modules that tell it which buttons to flash; BigRedBrent writes the main addon that actually does the flashing.

    Last edited by Xemnosyst on 11/7/2012 4:17:03 PM

    Author of Bitten's SpellFlash.

  • #94

    seriously I cant stand SPAM specially from an addon, "No talent defined: Sanctified Wrath, No Glyph Defined: Avenging Wrath" is what I get constantly spammed 5 per second, turn off your libary and it doesn't spam turn it on and it does, its bloody annoying I'm disabling this crap til you fix it cause it wasn't doing before your latest update.

  • #95

    Thank you for the report.  I just released a new version of the Pally module that will fix it.

    The change in this latest library release was designed to reveal bugs in my modules, which it appears to have done very effectively.  It turns out there was a bug in the Prot Pally code that I never knew about.

    I'm sorry you had to experience the chat frame spam.  Going forward it will reveal bugs to me as I work on rotations, before any users have to see them.  I did not think any modules already had such a bug.

    Last edited by Xemnosyst on 11/5/2012 1:45:54 PM

    Author of Bitten's SpellFlash.

  • #92

    Thank you to everyone who reported the "tried to call protected function" error with the last release.  I believe I have fixed it.  Let me know if any issues persist.

    Author of Bitten's SpellFlash.

  • #93

    On the other hand, I'm not sure my new solution will work as universally.  It successfully suppresses the Blizzard proc highlighting in their default UI and with action bar addons that use LibActionButton (such as Bartender).  If anybody is using another popular action bar addon for which proc highlights are still showing, let me know and perhaps I can find a way to turn those off, too.

    Author of Bitten's SpellFlash.

  • To post a comment, please login or register a new account.
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 »

Minesplosion