diff options
| author | Iskander <none@none> | 2009-06-20 21:53:59 +0200 |
|---|---|---|
| committer | Iskander <none@none> | 2009-06-20 21:53:59 +0200 |
| commit | a8d305c8c235c8c597cd5ffd051e5f829d850f30 (patch) | |
| tree | 69957759180af24bc15381483bcef9a7911fae91 /src/game/Unit.cpp | |
| parent | 1dd1f6db344c403fb6b90d6dff9b19cee73ffc0b (diff) | |
* fix of Spiritual Attunement
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
| -rw-r--r-- | src/game/Unit.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index b4878cbac46..3031a89e0aa 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5908,9 +5908,11 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu return false; // heal amount - basepoints0 = triggeredByAura->GetModifier()->m_amount*damage/100; + basepoints0 = triggeredByAura->GetModifierValue()*std::min(damage,GetMaxHealth() - GetHealth())/100; target = this; - triggered_spell_id = 31786; + + if(basepoints0) + triggered_spell_id = 31786; break; } // Paladin Tier 6 Trinket (Ashtongue Talisman of Zeal) |
