mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[11845] Implement ScriptEffects for spells 45141, 45151, 45206 for Brutallus
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
d034710e38
commit
8793abd2c4
2 changed files with 23 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11844"
|
||||
#define REVISION_NR "11845"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue