From 39b73d0807907e89f83ace2c16a05b84f44e5bba Mon Sep 17 00:00:00 2001 From: Xfurry Date: Wed, 27 Feb 2013 20:16:45 +0100 Subject: [PATCH] [c12528] Fix behavior of spell 42631 Thanks zkillertheman for pointing Also fix https://github.com/scriptdev2/scriptdev2/issues/33 (based on commit [12381] - b4b0f4b) --- src/game/SpellEffects.cpp | 5 ++++- src/shared/revision_nr.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index de8a899d3..bbe193b19 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1503,11 +1503,14 @@ void Spell::EffectDummy(SpellEffectEntry const* effect) } case 42631: // Fire Bomb (explode) { - if (!unitTarget) + if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT) return; unitTarget->RemoveAurasDueToSpell(42629); unitTarget->CastSpell(unitTarget, 42630, true); + + // despawn the bomb after exploding + ((Creature*)unitTarget)->ForcedDespawn(3000); return; } case 42793: // Burn Body diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 450cb11be..f7ed5fbca 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "12527" + #define REVISION_NR "12528" #endif // __REVISION_NR_H__