diff options
| author | n0n4m3 <none@none> | 2009-12-20 15:20:03 +0100 |
|---|---|---|
| committer | n0n4m3 <none@none> | 2009-12-20 15:20:03 +0100 |
| commit | d4aaa3d3b273599120e32fd7dd59df4f36abb9b5 (patch) | |
| tree | 40e9e19b19dbcbff542d7c8a09a3b758d48ec33a | |
| parent | c412c437a3c3fa25dc70b40e3149b294591ed2ea (diff) | |
Fixed Divine Aegis
--HG--
branch : trunk
| -rw-r--r-- | src/game/Unit.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index bc36ca8aaf4..5ac280f2add 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5812,7 +5812,15 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger // Divine Aegis if (dummySpell->SpellIconID == 2820) { - basepoints0 = damage * triggerAmount/100; + // Multiple effects stack, so let's try to find this aura. + int32 bonus = 0; + if (AuraEffect *aurEff = target->GetAuraEffect(47753, 0)) + bonus = aurEff->GetAmount(); + + basepoints0 = damage * triggerAmount/100 + bonus; + if (basepoints0 > target->getLevel() * 125) + basepoints0 = target->getLevel() * 125; + triggered_spell_id = 47753; break; } |
