aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.h
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-17 18:35:40 -0500
committermegamage <none@none>2009-06-17 18:35:40 -0500
commita2f10c496fcacbfd3dcb976807c8c23012aba03d (patch)
treecdc8a358411fcfe4199b1a3628735d763e31103b /src/game/Spell.h
parent7e4fcb17934bfd37a771334e36131ea402559d9b (diff)
[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
Diffstat (limited to 'src/game/Spell.h')
-rw-r--r--src/game/Spell.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/Spell.h b/src/game/Spell.h
index adc661e206b..6aa539808df 100644
--- a/src/game/Spell.h
+++ b/src/game/Spell.h
@@ -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();