*Fix target selection for Ancestral Awakening and Replenishment - by Them

--HG--
branch : trunk
This commit is contained in:
QAston
2009-08-05 04:37:19 +02:00
parent afd9eb77aa
commit d883bf5b44
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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;
+1 -1
View File
@@ -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;