Fixed spell Ignite, by Metaphysical.Drama.

--HG--
branch : trunk
This commit is contained in:
n0n4m3
2010-01-01 06:59:57 +01:00
parent 3c8c104781
commit 875fb3500c
2 changed files with 10 additions and 0 deletions
@@ -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');
+9
View File
@@ -5561,6 +5561,15 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
return false; 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; triggered_spell_id = 12654;
break; break;
} }