mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[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:
parent
5448e9c49b
commit
39b73d0807
2 changed files with 5 additions and 2 deletions
|
|
@ -1503,11 +1503,14 @@ void Spell::EffectDummy(SpellEffectEntry const* effect)
|
||||||
}
|
}
|
||||||
case 42631: // Fire Bomb (explode)
|
case 42631: // Fire Bomb (explode)
|
||||||
{
|
{
|
||||||
if (!unitTarget)
|
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
unitTarget->RemoveAurasDueToSpell(42629);
|
unitTarget->RemoveAurasDueToSpell(42629);
|
||||||
unitTarget->CastSpell(unitTarget, 42630, true);
|
unitTarget->CastSpell(unitTarget, 42630, true);
|
||||||
|
|
||||||
|
// despawn the bomb after exploding
|
||||||
|
((Creature*)unitTarget)->ForcedDespawn(3000);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
case 42793: // Burn Body
|
case 42793: // Burn Body
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "12527"
|
#define REVISION_NR "12528"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue