*Check for NULL unitTarget's in Cleansing Totem Effect, Healing Stream Totem, Mana Spring Totem, thanks Sisif
--HG-- branch : trunk
This commit is contained in:
@@ -1881,19 +1881,21 @@ void Spell::EffectDummy(uint32 i)
|
|||||||
{
|
{
|
||||||
int32 bp1 = 1;
|
int32 bp1 = 1;
|
||||||
// Cleansing Totem Effect
|
// Cleansing Totem Effect
|
||||||
m_caster->CastCustomSpell(unitTarget, 52025, NULL, &bp1, NULL, true, NULL, NULL, m_originalCasterGUID);
|
if (unitTarget)
|
||||||
|
m_caster->CastCustomSpell(unitTarget, 52025, NULL, &bp1, NULL, true, NULL, NULL, m_originalCasterGUID);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Healing Stream Totem
|
// Healing Stream Totem
|
||||||
if(m_spellInfo->SpellFamilyFlags[0] & 0x2000)
|
if(m_spellInfo->SpellFamilyFlags[0] & 0x2000)
|
||||||
{
|
{
|
||||||
m_caster->CastCustomSpell(unitTarget, 52042, &damage, 0, 0, true, 0, 0, m_originalCasterGUID);
|
if (unitTarget)
|
||||||
|
m_caster->CastCustomSpell(unitTarget, 52042, &damage, 0, 0, true, 0, 0, m_originalCasterGUID);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Mana Spring Totem
|
// Mana Spring Totem
|
||||||
if (m_spellInfo->SpellFamilyFlags[0] & 0x4000)
|
if (m_spellInfo->SpellFamilyFlags[0] & 0x4000)
|
||||||
{
|
{
|
||||||
if (unitTarget->getPowerType()!=POWER_MANA)
|
if (!unitTarget || unitTarget->getPowerType() != POWER_MANA)
|
||||||
return;
|
return;
|
||||||
m_caster->CastCustomSpell(unitTarget, 52032, &damage, 0, 0, true, 0, 0, m_originalCasterGUID);
|
m_caster->CastCustomSpell(unitTarget, 52032, &damage, 0, 0, true, 0, 0, m_originalCasterGUID);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user