aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQAston <none@none>2009-07-27 19:08:26 +0200
committerQAston <none@none>2009-07-27 19:08:26 +0200
commit40b9fc57ed1e0a1cf12a4894d8471da4e44f90e3 (patch)
tree89793826df54b51d487d52c83c7abb2a1a5ae8e9 /src
parentba31fc3714600b9b95aecb9f52fe35eb1f28e4e1 (diff)
*Do not allow to cast corpse explosion twice on one corpse - by thenecromancer.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Spell.cpp1
1 files changed, 1 insertions, 0 deletions
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))