Jump to content

[HELP] Fixing Arcane Blast


Guest Kippstrahl

Recommended Posts

Hi there, unfortunately the Arcane Blast spell hasn't been fixed for several mangos builds so I tried to fix it on myself. I would fix it in that way:

1.) Add the fix in the Spell::Prepare() function

2.) When casting an arcane spell, check the spell id (Arcane Blast -> do not remove the buff; other arcane damage spells -> remove it)

if(m_caster->getClass() == CLASS_MAGE && (m_spellInfo->SchoolMask & SPELL_SCHOOL_MASK_ARCANE))
{
   //All arcane damage spells instead of arcane blast will remove the aura
   if(m_spellInfo->Id != 30451 && m_spellInfo->Id != 42894 && m_spellInfo->Id != 42896 && m_spellInfo->Id != 42897)
       m_caster->RemoveSpellsCausingAura(SPELL_AURA_ADD_PCT_MODIFIER);
}

This is in my opinion a very bad solution in the third line. The spell ids are all Arcane Blast and its 4 ranks. (Better solution?)

The problem here is, that any other arcane spell removes the aura. So I have to differentiate between damage arcane spells and normal buffs, but I don't know how.

greets, Kipp

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use