diff options
author | QAston <none@none> | 2009-08-05 04:37:19 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-08-05 04:37:19 +0200 |
commit | d883bf5b44dcdd67828712b2866e37cc9de83511 (patch) | |
tree | 1225eb70044df26430b655f83af119c0ac1b8bcf /src | |
parent | afd9eb77aab6a48c94622f9b3b281ba50ac3b105 (diff) |
*Fix target selection for Ancestral Awakening and Replenishment - by Them
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Spell.cpp | 6 | ||||
-rw-r--r-- | src/game/Unit.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 8690412d733..ede108fe34d 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -82,7 +82,7 @@ struct PrioritizeMana { int operator()( PrioritizeManaUnitWraper const& x, PrioritizeManaUnitWraper const& y ) const { - return x.getPercent() < y.getPercent(); + return x.getPercent() > y.getPercent(); } }; @@ -106,7 +106,7 @@ struct PrioritizeHealth { int operator()( PrioritizeHealthUnitWraper const& x, PrioritizeHealthUnitWraper const& y ) const { - return x.getPercent() < y.getPercent(); + return x.getPercent() > y.getPercent(); } }; @@ -2451,7 +2451,7 @@ void Spell::SetTargetMap(uint32 i, uint32 cur) case 59725: // Improved Spell Reflection - aoe aura unitList.remove(m_caster); break; - case 57699: //Replenishment (special target selection) 10 targets with lowest mana + case 57669: //Replenishment (special target selection) 10 targets with lowest mana { typedef std::priority_queue<PrioritizeManaUnitWraper, std::vector<PrioritizeManaUnitWraper>, PrioritizeMana> TopMana; TopMana manaUsers; diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index c8b375269bc..4622c4cfe9e 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -7205,7 +7205,7 @@ bool Unit::HandleAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAura, S ((Player*)this)->GetBaseRune(i) != RUNE_BLOOD ) continue; } - if (GetRuneCooldown(i) != RUNE_COOLDOWN) + if (((Player*)this)->GetRuneCooldown(i) != RUNE_COOLDOWN) continue; --runesLeft; |