Scripts/Spells: Fix warlock immolate periodic
Port From (https://github.com/TrinityCore/TrinityCore/commit/d95a1e7eafd268a43245d182cf945b0106cab11c)
This commit is contained in:
@@ -36,6 +36,7 @@ namespace Scripts.Spells.Warlock
|
|||||||
public const uint GlyphOfDemonTraining = 56249;
|
public const uint GlyphOfDemonTraining = 56249;
|
||||||
public const uint GlyphOfSoulSwap = 56226;
|
public const uint GlyphOfSoulSwap = 56226;
|
||||||
public const uint GlyphOfSuccubus = 56250;
|
public const uint GlyphOfSuccubus = 56250;
|
||||||
|
public const uint ImmolatePeriodic = 157736;
|
||||||
public const uint ImprovedHealthFunnelBuffR1 = 60955;
|
public const uint ImprovedHealthFunnelBuffR1 = 60955;
|
||||||
public const uint ImprovedHealthFunnelBuffR2 = 60956;
|
public const uint ImprovedHealthFunnelBuffR2 = 60956;
|
||||||
public const uint ImprovedHealthFunnelR1 = 18703;
|
public const uint ImprovedHealthFunnelR1 = 18703;
|
||||||
@@ -334,6 +335,25 @@ namespace Scripts.Spells.Warlock
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Script] // 348 - Immolate
|
||||||
|
class spell_warl_immolate : SpellScript
|
||||||
|
{
|
||||||
|
public override bool Validate(SpellInfo spellInfo)
|
||||||
|
{
|
||||||
|
return ValidateSpellInfo(SpellIds.ImmolatePeriodic);
|
||||||
|
}
|
||||||
|
|
||||||
|
void HandleOnEffectHit(uint effIndex)
|
||||||
|
{
|
||||||
|
GetCaster().CastSpell(GetHitUnit(), SpellIds.ImmolatePeriodic, GetSpell());
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Register()
|
||||||
|
{
|
||||||
|
OnEffectHitTarget.Add(new EffectHandler(HandleOnEffectHit, 0, SpellEffectName.SchoolDamage));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[Script] // 6358 - Seduction (Special Ability)
|
[Script] // 6358 - Seduction (Special Ability)
|
||||||
class spell_warl_seduction : SpellScript
|
class spell_warl_seduction : SpellScript
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user