*Do not allow to cast corpse explosion twice on one corpse - by thenecromancer.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-07-27 19:08:26 +02:00
parent ba31fc3714
commit 40b9fc57ed
+1
View File
@@ -2280,6 +2280,7 @@ void Spell::SetTargetMap(uint32 i, uint32 cur)
// Search for ghoul if our ghoul or dead body not valid unit target
if (!(m_targets.getUnitTarget() && (m_targets.getUnitTarget()->GetEntry() == 26125 && m_targets.getUnitTarget()->GetOwnerGUID() == m_caster->GetGUID()
|| (m_targets.getUnitTarget()->getDeathState() == CORPSE
&& m_targets.getUnitTarget()->GetDisplayId() == m_targets.getUnitTarget()->GetNativeDisplayId()
&& m_targets.getUnitTarget()->GetTypeId()== TYPEID_UNIT
&& !((Creature*)m_targets.getUnitTarget())->isDeadByDefault()
&& !(m_targets.getUnitTarget()->GetCreatureTypeMask() & CREATURE_TYPEMASK_MECHANICAL_OR_ELEMENTAL))