aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);