*Do not let soulshatter aggro not-aggroed creatures.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-02 20:53:06 -06:00
parent 1222cc0622
commit 69f973bad9
+2 -1
View File
@@ -929,7 +929,8 @@ void Spell::EffectDummy(uint32 i)
return;
}
case 29858: // Soulshatter
if (unitTarget && unitTarget->GetTypeId() == TYPEID_UNIT && unitTarget->IsHostileTo(m_caster))
if (unitTarget && unitTarget->CanHaveThreatList()
&& unitTarget->getThreatManager().getThreat(m_caster) > 0.0f)
m_caster->CastSpell(unitTarget,32835,true);
return;
case 30458: // Nigh Invulnerability