[8030] Fixed spell 64901 work and related target selection code refactoring. Author: VladimirMangos

* Replace 64904 by 64901 in spellbook and action bars.
    * Implement proper max mana percent buff
    * Implement proper target selection.
    * Move group/raid targets seelction code to functions for reuse code.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-17 18:35:40 -05:00
parent 7e4fcb1793
commit a2f10c496f
8 changed files with 144 additions and 33 deletions
+5
View File
@@ -105,6 +105,8 @@ namespace Trinity
struct SpellNotifierCreatureAndPlayer;
}
typedef std::list<Unit*> UnitList;
class SpellCastTargets
{
public:
@@ -401,6 +403,9 @@ class Spell
void FillTargetMap();
void SetTargetMap(uint32 i, uint32 cur);
void FillRaidOrPartyTargets( UnitList &TagUnitMap, Unit* target, float radius, bool raid, bool withPets, bool withcaster );
void FillRaidOrPartyManaPriorityTargets( UnitList &TagUnitMap, Unit* target, float radius, uint32 count, bool raid, bool withPets, bool withcaster );
void FillRaidOrPartyHealthPriorityTargets( UnitList &TagUnitMap, Unit* target, float radius, uint32 count, bool raid, bool withPets, bool withcaster );
template<typename T> WorldObject* FindCorpseUsing();