Buffalo - Raid buff addon
-------------------------

Buffalo adds a new button for your UI, which will light up with an icon when someone in your group or raid needs a new buff from you. The assigned groups can be configured, so you can
set up which groups you will monitor and what buffs you will do.

You can move the button by pressing Shift while dragging the icon to a desired position.

Buffalo works for Classic and TBC.


Slash Commands
--------------
Buffalo does not need much setup, so there are only a few commands available:

* /buffalo config - opens the Group/Buff configuration screen. This can also be done by right-clicking the buff button.
* /buffalo hide - hides the Buff button
* /buffalo show - (default) shows the Buff button again (yay!)
* /buffalo version - shows the current version of Buffalo.
* /buffalo announce - write a message locally when a buff is missing.
* /buffalo stopannounce - (default) stop writing missing buffs.

 

Note:
This is a beta version, and there may be bugs. Should you find one, feel free to report it below, together with relevant information, such as:
* What class did you play
* What buff failed
* What realm type (Classic Era, Tbc, WoTLK ...)
* Did you get any errors?

 
 

Not yet implemented:
--------------------
* Paladin buffs are not yet implemented. I hope to make the addon 100% compatible with PallyPower,thus exchanging buffs.



Hey, that addon reminds me of SmartBuff!
----------------------------------------
It sure does! I have been using SmartBuff for many years and loved it. But now it seems there isn't a working SmartBuff addon out there.

This addon is not a SmartBuff clone!

Buffalo works differently, and has a stronger focus on party/raid buffing, where SmartBuff worked for everyone - including your Warrior for that Find Herbs buff. Buffalo does not support buffing in combat. This is a limitation implemented by Blizzard, which didn't exist back in the SmartBuff days.



Buff priority:
--------------
ALL			FindHerbs					10
ALL			FindMinerals				10

Druid		Thorns						11
Druid		GiftOfTheWild				52
Druid		MarkOfTheWild				52
Druid		OmenOfClarity				53

Mage		IceArmor					12
Mage		FrostArmor					12
Mage		MageArmor					13
Mage		MoltenArmor					14 (WotLK)
Mage		IceBarrier					30
Mage		DampenMagic					51
Mage		AmplifyMagic				52
Mage		ArcaneBrilliance			53
Mage		ArcaneIntellect				53

Priest		ShadowForm					11
Priest		InnerFire					12
Priest		PrayerOfShadowProtection	51
Priest		ShadowProtection			51
Priest		PrayerOfSpirit				52
Priest		DivineSpirit				52
Priest		PrayerOfFortitude			53
Priest		PowerWordFortitude			53

Warlock		DemonSkin					11
Warlock		DemonArmor					11
Warlock		DetectLesserInvisibility	21
Warlock		DetectInvisibility			21
Warlock		DetectGreaterInvisibility	21
Warlock		UnendingBreath				22
Warlock		FireShield					23
Warlock		Incubus						36
Warlock		Succubus					36
Warlock		Felhunter					37
Warlock		Voidwalker					38
Warlock		Imp							39





Version history
---------------
Version 0.8.1:
* TBC: Fixed yellow triangle on buffs in the configuration screen.
* TBC: Fixed auras not being detecting correct.


Version 0.8.0-beta1:
* Added support for TBC Anniversary, including Molten Armor, Fel Armor, Fel Guard and Inferno.
Known issues:
* Icons in buff configuration appears with a yellow arrow.


Version 0.7.2:
* Added Opacity setting for the Buff button.
* Bumped Classic client version to 1.15.8

Version 0.7.1:
* Fixed Buffalo icon for non-buffing classes: it was invisible but still clickable which caused an empty addon to be displayed.

Version 0.7.0:
* Fixed selfie buffs position: now aligned with label.

Version 0.7.0b3:
* Fixed LUA errors during initalizing when an "unsupported" class (e.g. a Warrior) logged on.
* Fixed LUA error when learning new spells as an "unsupported" class.


Version 0.7.0b2:
* Fixed a LUA error when handling Warlock's Demon.
* Fixed a LUA error when clicking some spells in Buff configuration.
* Fixed Class configuration: window size was sometimes set wrong.
* Fixed Incubus/Succubus: sometimes both spells were displayed.
* Fixed Class configuration: missing class icons after login.


Version 0.7.0b1:
* Major refactoring of the entire spell tree. This fixed some minor spell selection bugs (and probably introduced some others)
* Added: Learning new talents or changing spec (Anniversary) now updates the UI.
* Added: Omen of Clarity for Balance Druids
* Removed support for WotLK after Cataclysm took over. No, I do not intend to play Cataclysm or Mist of Pandaria.
* Bugfix: 6/5 in PrayerBuffs forced default 4/5 to be used when reloading addon.


Version 0.6.7:
* Removed two debug messages.
* Bumped Classic client version to 1.15.7


Version 0.6.6:
* Fixed a bug which prevented lower versions of spells to be ignored (Frost armor ignored for Ice Armor etc.)


Version 0.6.5:
* Bumped Classic client version to 1.15.6


Version 0.6.4:
* Bumped Classic client version to 1.15.5


Version 0.6.3:
* Fixed broken checkboxes after updating to 1.15.4 API.
  Thanks Blizzard for changing API in a #nochanges game.
 

Version 0.6.2:
* Bumped Classic client version to 1.15.4


Version 0.6.1:
* Bumped Classic client version to 1.15.3


Version 0.6.0:
* Added buttons to select/deselect an entire row in Personal buff mode.
* Added Warlocks and their buffs to the addon: Welcome, Warlocks!
* Added Pet as target for buffing - thanks to DJSchaffner for the Pet addition code.
* Refactored large potions of the code.


Version 0.6.0b1-5:
* Bugfix: Class config index order is wrong, making buff selection count for wrong class!
* Bugfix: LUA bug kept popping up when scanning raid
* Bugfix: Player's pet was assigned for "selfie buffing"
* Bugfix: Lock pets does not accept (some?) buffs - now ignoring Lock pets.
* Bugfix: Fixed a LUA bug in Classic when initializing addon as Mage.


Version 0.5.9
* Bumped Classic client version to 1.15.2


Version 0.5.8
* Bumped Classic client version to 1.15.1


Version 0.5.7
* Added Priest Shadowform to list of Buffs.


Version 0.5.6
* Bumped Classic client version to 1.15.0
* Bumped Wrath client version to 3.4.3


Version 0.5.5
* Added Frost Armor (Mage) to buff list
* Removed two debug messages.


Version 0.5.4
* Bumped Wrath client version to 3.4.2
* Bumped Classic client version to 1.14.4


Version 0.5.3
* Bugfix: Repeating LUA errors when a parent group buff had not been learned yet.
 

Version 0.5.2
* Bugfix: Molten Armor (mage) buff caused Classic Era version to fail.


Version 0.5.1
* Added Molten Armor (mage) buff.
* Bugfix: Find Herbs / Minerals was not detected correct in WotLK.
* Removed TBC TOC file.


Version 0.5.0
* Fixed local text settings not being persisted.
* Added support for Wrath of the Lich King Classic. Note: Buffalo still works in "one, buff, one group" mode.


Version 0.5.0-beta2
* Added command to reset the Buff button position: "/buffalo resetbutton".
* Fixed icon for Gift of the Wild for Druids.


Version 0.5.0-beta1
* Added Raidmode 1 + 2
* Refactoring of UI to handle different buff modes.


Version 0.4.1
* Bugfix: Failed buffs (out of LOS e.g.) are no longer announced in chat.


Version 0.4.0
* Bugfix: TBC Find Herbs / Find Minerals now working.


Version 0.4.0-beta2
* Added new frame for general configuration options:
* Added configuration option: Prayer/Group buff threshold
* Added configuration option: Scan time interval
* Added configuration option: Option renew before buff expire
* Added configuration option: Show missing buffs
* Added configuration option: Show completed buffs
* Bugfix: "/buffalo version" gave a LUA error.


Version 0.4.0-beta1
* Added class configuration UI.
* Added Deathknight class, although not selectable in UI yet.
* Updated configuration UI.


Version 0.3.1
* Fixed selfie buffs in Solo and Party.
* Reordered buff display order in UI.


Version 0.3.0
* Updated class priority
* Fixed prayer priority


Version 0.3.0-beta2
* Bugfix: Prayer Buffs did not fire correct on foreign groups.
* Bugfix: Buff detection gave false positive when raid buffs was also selected for self.


Version 0.3.0-beta1
* Added: Option to announce next buff in queue (/buffalo announce).
* Bugfix: Init of Buffalo sometimes failed due to WoW still not done caching data, added a delay to fix that.
* Bugfix: Buffalo repeatedly attempted to buff selfie buffs on others.
* Bugfix: The buff scanner did not always pick up missing buffs as it should.
* Bugfix: Addon didnt handle buffs with a cooldown (currently only Ice Barrier).


Version 0.3.0-alpha2
* Added: Raid (non-group) buffs are now visible in selfie UI
* Added: Find Herbs, Find Minerals to selfie UI
* Added: Ice Barrier (frost Mage shield)
* Bugfix: TOC file for TBC was missing configuration file, made Buffalo fail.
* Bugfix: Unlearned spells still pops up for buffing.
* Bugfix: Taking spells on CD into account


version 0.3.0-alpha1
* Added: "Selfie" buffs: "Inner Fire", "Mage Armor" etc.
* Added: "Selfie" buffs added to the configuration UI.
* Bugfix: LUA errors when people join raid possibly fixed.
* Bugfix: Range check was not always working.


version 0.2.0-alpha2:
* Added: Mutual exclusive buffs are now handled.
* Bugfix: Fixed bug when converting to raid, causing LUA errors en mass!


version 0.2.0-alpha1:
* Added: Configuration UI for Raid buffs.
* Added: /buffalo help, show, hide
* Added/fixed persisted settings.


version 0.1.0-alpha2:
* Slash-handler added
	* Supports Version
* Distance check is missing - fixed
* Independent of Spell ranks
* Independent of spell names (localizations)
* Independent of class names (localizations)


version 0.1.0-alpha1:
* No UI whatsoever (beside the buff button).
* Addon can BUFF for Priest, Mage (untested), Druid and Warlock (untested).
* Assigned groups are hardcoded to 1,2,3 and 4.
* Assigned buffs are assigned to bitmask 0x003. For a priest that is Fortitude and Spirit.
* Addon only supports Raids for the moment.
* Findings after first raid:
	* Distance check is missing
	* "raid40" unitid fix does not work





Backlog:
* x.x.x:	Add window with next 5 expiring buffs?
* x.x.x:	Make a 10% buff warning window?
* x.x.x:	Paladins!


