diff --git a/sql/updates/6871_world_spell_bonus_data.sql b/sql/updates/6871_world_spell_bonus_data.sql new file mode 100644 index 0000000000..662ed5c533 --- /dev/null +++ b/sql/updates/6871_world_spell_bonus_data.sql @@ -0,0 +1 @@ +INSERT INTO `spell_bonus_data` (`entry`, `direct_bonus`, `dot_bonus`,`ap_bonus`, `ap_dot_bonus`, `comments`) VALUES (12654, 0, 0, 0, 0, 'Mage - Ignite'); diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index a128f6119b..b4a1efa9c4 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; }