Manasurge
=========

summary
-------
Manasurge is an addon that handles weapon switching depending on
spellsurge procs.

features
--------
- support for 2h/1h+oh combos
- tries to avoid triggering GCD on set switch
- can be set to be active only inside instances
- can be set to autoequip spellsurge set on start of fight
- does nothing if the weapon slot becomes empty during fight
- does nothing if the user switches to a new weapon manually (eg. Kael'thas)

description
-----------
Two sets of mainhand+offhand items has to be set (offhand is optional).
One is the normal set which contains a weapon without spellsurge. The
second is the spellsurge set containing a weapon enchanted with spellsurge.
The offhand slot does not have to be set and in that case is not switched
(that is the case when you have two one handed weapons for switching).
Setting the offhand slot is usefull when one of the sets contains a
two-handed weapon and the other contains a one-handed weapon and an offhand.

Once Manasurge detects a proc of spellsurge that belongs to the player
it switches to the normal set (does not have to happen instantly, more
on that later) and schedules a re-equipment of the spellsurge set once
the cooldown on the spellsurge enchant runs out.

Another feature of manasurge is that it tries to avoid triggering a
global cooldown on the weapon switch by deferring the actual weapon
swap to a moment when the player triggers GCD by another action (casting
a spell). For this purpose a spell has to be set in the configuation
that is used to check the status of GCD. A time limit can be set to how
long it waits before forcing the switch.

usage
-----
The Manasurge configuration window can be accessed with the /ms slash
command. The item sets and GCD spell can be set by drag&dropping the
desired item (or spell from spellbook) to the appropriate editbox in
the configuration UI.
