Core/Auras: Add functions for common actions on aura charges.
This commit is contained in:
1 parent
109a861407
commit
b9e8e6d3b4
7 files changed
+72
-57
No files matched your search
@@ -5110,15 +5110,15 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex)
|
||||
sLog->outError("Unknown Lightwell spell caster %u", m_caster->GetEntry());
|
||||
return;
|
||||
}
|
||||
Aura * chargesaura = m_caster->GetAura(59907);
|
||||
|
||||
if (chargesaura && chargesaura->GetCharges() > 1)
|
||||
// proc a spellcast
|
||||
if (Aura * chargesAura = m_caster->GetAura(59907))
|
||||
{
|
||||
chargesaura->SetCharges(chargesaura->GetCharges() - 1);
|
||||
m_caster->CastSpell(unitTarget, spell_heal, true, NULL, NULL, m_caster->ToTempSummon()->GetSummonerGUID());
|
||||
if (chargesAura->ModCharges(-1))
|
||||
m_caster->ToTempSummon()->UnSummon();
|
||||
}
|
||||
else
|
||||
m_caster->ToTempSummon()->UnSummon();
|
||||
|
||||
return;
|
||||
}
|
||||
// Stoneclaw Totem
|
||||
|
||||
Reference in new issue
Block a user