aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2010-01-01 06:59:57 +0100
committern0n4m3 <none@none>2010-01-01 06:59:57 +0100
commit875fb3500c6f9d499b521a627420963a1a83b763 (patch)
tree4af5507659b03bf2d053bd0a205155eb4166c021 /src
parent3c8c10478112597f8cefd2dfa0eeeeb685f056d5 (diff)
Fixed spell Ignite, by Metaphysical.Drama.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp9
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;
}