aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-24 17:26:44 -0500
committermegamage <none@none>2009-05-24 17:26:44 -0500
commit8140543de41c36945303627efbde518837b406b1 (patch)
tree346bc5bbc48b4558d869c97385dd2bf549668a69 /src/game/Unit.cpp
parent1c505261bc13585924e553eeea7b7a14232eb08f (diff)
*Rewrite some OPvP functions.
*Apply tenacity buff for outnumbered players in wintergrasp. --HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 651d09d98a1..7b6b65bbb5a 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -13796,6 +13796,18 @@ void Unit::AddAura(uint32 spellId, Unit* target)
target->AddAura(Aur);
}
+void Unit::SetAuraStack(uint32 spellId, Unit *target, uint32 stack)
+{
+ Aura *aur = target->GetAura(spellId, GetGUID());
+ if(!aur)
+ {
+ AddAura(spellId, target);
+ aur = target->GetAura(spellId, GetGUID());
+ }
+ if(aur && stack)
+ aur->SetStackAmount(stack);
+}
+
Aura * Unit::AddAuraEffect(const SpellEntry * spellInfo, uint8 effIndex, Unit* caster, int32 * basePoints, Unit * source)
{
// can't do that for passive auras - they stack from same caster so there is no way to get exact aura which should get effect