diff options
author | QAston <none@none> | 2009-03-10 21:35:07 +0100 |
---|---|---|
committer | QAston <none@none> | 2009-03-10 21:35:07 +0100 |
commit | 196c8c933119a849d65196cc1198e4d48cf8b59d (patch) | |
tree | cc0e42cf6735eb5948fbd7ce4becee483f0290fa /src | |
parent | 0f4f36c8935d82cfad04a87a8343f33e2937f66e (diff) | |
parent | fdbcfc548d3ba6503c4275fdd603c0986a01ca34 (diff) |
*Merge
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 5 |
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); |