[11845] Implement ScriptEffects for spells 45141, 45151, 45206 for Brutallus

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
Xfurry 2011-11-10 21:24:35 +01:00 committed by Schmoozerd
parent d034710e38
commit 8793abd2c4
2 changed files with 23 additions and 1 deletions

View file

@ -6701,6 +6701,28 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
unitTarget->CastSpell(unitTarget, 44870, true);
break;
}
case 45141: // Burn
{
unitTarget->CastSpell(unitTarget, 46394, true, NULL, NULL, m_caster->GetObjectGuid());
return;
}
case 45151: // Burn
{
if (!unitTarget || unitTarget->HasAura(46394))
return;
// Make the burn effect jump to another friendly target
unitTarget->CastSpell(unitTarget, 46394, true);
return;
}
case 45185: // Stomp
{
// Remove the burn effect
if (unitTarget->HasAura(46394))
unitTarget->RemoveAurasDueToSpell(46394);
return;
}
case 45206: // Copy Off-hand Weapon
{
if (m_caster->GetTypeId() != TYPEID_UNIT || !unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11844"
#define REVISION_NR "11845"
#endif // __REVISION_NR_H__