From 40b9fc57ed1e0a1cf12a4894d8471da4e44f90e3 Mon Sep 17 00:00:00 2001 From: QAston Date: Mon, 27 Jul 2009 19:08:26 +0200 Subject: *Do not allow to cast corpse explosion twice on one corpse - by thenecromancer. --HG-- branch : trunk --- src/game/Spell.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index dfa2687c72d..f69c5124cc6 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -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)) -- cgit v1.2.3