aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-05 15:05:44 -0600
committermegamage <none@none>2009-01-05 15:05:44 -0600
commit215039055bf5f017870d583c60c01c303d1a2d33 (patch)
tree371fdee0547446fb42fd08856e1c4ff9d6d036a2 /src
parentd86b62523741eb37d19de952a9fd180b75618351 (diff)
*Fix build.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Spell.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 832b6694d32..dd4079d5ff4 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -5371,9 +5371,8 @@ Unit* Spell::SelectMagnetTarget()
{
if(Unit* magnet = (*itr)->GetCaster())
{
- if((*itr)->m_procCharges>0)
+ if((*itr)->DropAuraCharge())
{
- (*itr)->SetAuraProcCharges((*itr)->m_procCharges-1);
target = magnet;
m_targets.setUnitTarget(target);
AddUnitTarget(target, 0);