aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Spell.cpp6
-rw-r--r--src/game/Unit.cpp2
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;