aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-03-10 21:35:07 +0100
committerQAston <none@none>2009-03-10 21:35:07 +0100
commit196c8c933119a849d65196cc1198e4d48cf8b59d (patch)
treecc0e42cf6735eb5948fbd7ce4becee483f0290fa /src/game/Unit.cpp
parent0f4f36c8935d82cfad04a87a8343f33e2937f66e (diff)
parentfdbcfc548d3ba6503c4275fdd603c0986a01ca34 (diff)
*Merge
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 8e2e6dba243..fb1da20d39a 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -3795,11 +3795,8 @@ bool Unit::AddAura(Aura *Aur)
{
// prevent adding stack more than once
stackModified=true;
- int32 amount=aurSpellInfo->StackAmount;
- if(Player* caster = ((Player*)Aur->GetCaster()))
- caster->ApplySpellMod(aurSpellInfo->Id, SPELLMOD_CHARGES, amount, NULL);
Aur->SetStackAmount(i2->second->GetStackAmount());
- if(Aur->GetStackAmount() < amount)
+ if(Aur->GetStackAmount() < aurSpellInfo->StackAmount)
Aur->SetStackAmount(Aur->GetStackAmount()+1);
}
RemoveAura(i2,AURA_REMOVE_BY_STACK);