aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraczman <none@none>2009-05-24 20:54:59 +0200
committerraczman <none@none>2009-05-24 20:54:59 +0200
commit9f5f0159f808c52443331c0dfd8cb53779184c9a (patch)
tree6a4534fe945c050156ca893291bc6cd3e5f4e0da /src
parent0b8e6ee15a1137d25aaa3071dc5a1410e49faec4 (diff)
Apply 6 second rule to mana potions on arenas.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellAuras.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index a775ccdd3f8..64e8887fd15 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -5935,7 +5935,9 @@ void Aura::PeriodicDummyTick()
// on 1 tick - 166% (handled in 4 second)
// on 2 tick - 133% (handled in 6 second)
// Not need update after 3 tick
- /*
+ BattleGround *bg = ((Player*)m_target)->GetBattleGround();
+ if(!bg || !bg->isArena())
+ return;
if (tick > 3)
return;
// Apply bonus for 0 - 3 tick
@@ -5955,7 +5957,7 @@ void Aura::PeriodicDummyTick()
break;
}
((Player*)m_target)->UpdateManaRegen();
- return;*/
+ return;
}
}
return;