diff options
| author | n0n4m3 <none@none> | 2010-01-01 06:59:57 +0100 |
|---|---|---|
| committer | n0n4m3 <none@none> | 2010-01-01 06:59:57 +0100 |
| commit | 875fb3500c6f9d499b521a627420963a1a83b763 (patch) | |
| tree | 4af5507659b03bf2d053bd0a205155eb4166c021 /src | |
| parent | 3c8c10478112597f8cefd2dfa0eeeeb685f056d5 (diff) | |
Fixed spell Ignite, by Metaphysical.Drama.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Unit.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index a128f6119b2..b4a1efa9c45 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5561,6 +5561,15 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger return false; } + AuraEffectList const& DoTAuras = target->GetAurasByType(SPELL_AURA_PERIODIC_DAMAGE); + for (Unit::AuraEffectList::const_iterator i = DoTAuras.begin(); i != DoTAuras.end(); ++i) + { + if ((*i)->GetCasterGUID() != GetGUID() || (*i)->GetId() != 12654 || (*i)->GetEffIndex() != 0) + continue; + basepoints0 += ((*i)->GetAmount() * ((*i)->GetTotalTicks() - ((*i)->GetTickNumber()))) / 2; + break; + } + triggered_spell_id = 12654; break; } |
