[c12528] Fix behavior of spell 42631

Thanks zkillertheman for pointing

Also fix https://github.com/scriptdev2/scriptdev2/issues/33

(based on commit [12381] - b4b0f4b)
This commit is contained in:
Xfurry 2013-02-27 20:16:45 +01:00 committed by Antz
parent 5448e9c49b
commit 39b73d0807
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12527"
#define REVISION_NR "12528"
#endif // __REVISION_NR_H__