*better handle effect 140. do not consider bp > 0 as custom damage.
--HG-- branch : trunk
This commit is contained in:
@@ -2009,9 +2009,22 @@ void Spell::EffectForceCast(uint32 i)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (damage)
|
if (damage)
|
||||||
unitTarget->CastCustomSpell(unitTarget, spellInfo->Id, &damage, NULL, NULL, true, NULL, NULL, m_originalCasterGUID);
|
{
|
||||||
else
|
if(m_spellInfo->EffectBasePoints[i] > 0)
|
||||||
unitTarget->CastSpell(unitTarget, spellInfo, true, NULL, NULL, m_originalCasterGUID);
|
{
|
||||||
|
switch(m_spellInfo->Id)
|
||||||
|
{
|
||||||
|
case 52588: unitTarget->RemoveAura(damage); break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
unitTarget->CastCustomSpell(unitTarget, spellInfo->Id, &damage, NULL, NULL, true, NULL, NULL, m_originalCasterGUID);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
unitTarget->CastSpell(unitTarget, spellInfo, true, NULL, NULL, m_originalCasterGUID);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Spell::EffectTriggerSpell(uint32 i)
|
void Spell::EffectTriggerSpell(uint32 i)
|
||||||
|
|||||||
Reference in New Issue
Block a user