Hi,
I'm new to Mangos and wanted to fix Baron Geddon especially Inferno Effect.
So far i fixed his Melee Attacks to Ignore Armor (cause his Melee Attacks are Magical->fire damage), made his Inferno Spell working (atleast in mangos-zero it isn't and haven't found a solution in mangos-master).
The only thing missing is the damage Multiplier on each pulse/tick of his Inferno. Atm the damage is constant cause i don't know how to get the remaining duration of an Aura (atleast that is the solution i'm aiming for).
What i found out so far:
Inferno: 19695 -> triggers Inferno Dummy Effect: 18947
Inferno: 19698 <-the spell itself
informations from spell.dbc: http://imageshack.us/photo/my-images/444/geddon.jpg/
spelleffects.cpp:
void Spell::EffectDummy(SpellEffectIndex eff_idx)
{
.
.
.
case 18947: //Baron Geddon Inferno Dummy Effect
{
SpellEntry const* spellInfo = sSpellStore.LookupEntry(19695);
int32 dur=GetSpellDuration(spellInfo); //8 sec <-some nonsense
damage=spellInfo->EffectBasePoints[0]*(dur/1000) //1000*dur_in_seconds (just for some testing purpose)
m_caster->CastCustomSpell(m_caster, 19698, &damage, NULL, NULL, true);
return;
}
.
.
.
spell 19695 Auras:
23:Periodic Trigger (value:1000 interval: 1 sec) Inferno Dummy Effect (18947)
25:Root
26:Pacify
My problem is the lack of knowledge how to get the remaining aura duration or remaining ticks of spell 19695.