*Fix target selection for Ancestral Awakening and Replenishment - by Them
--HG-- branch : trunk
This commit is contained in:
+3
-3
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user