Scripts/Spells: Implement Blinding Sleet
Port From (https://github.com/TrinityCore/TrinityCore/commit/36aac83ea37e667fb8e87fa9f8e97b5f0a38f235)
This commit is contained in:
@@ -21,6 +21,7 @@ namespace Scripts.Spells.DeathKnight
|
|||||||
public const uint ArmySkeletonTransform = 127527;
|
public const uint ArmySkeletonTransform = 127527;
|
||||||
public const uint ArmySpikedGhoulTransform = 127525;
|
public const uint ArmySpikedGhoulTransform = 127525;
|
||||||
public const uint ArmySuperZombieTransform = 127526;
|
public const uint ArmySuperZombieTransform = 127526;
|
||||||
|
public const uint BlindingSleetSlow = 317898;
|
||||||
public const uint Blood = 137008;
|
public const uint Blood = 137008;
|
||||||
public const uint BloodPlague = 55078;
|
public const uint BloodPlague = 55078;
|
||||||
public const uint BloodShieldAbsorb = 77535;
|
public const uint BloodShieldAbsorb = 77535;
|
||||||
@@ -204,6 +205,26 @@ namespace Scripts.Spells.DeathKnight
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Script] // 207167 - Blinding Sleet
|
||||||
|
class spell_dk_blinding_sleet : AuraScript
|
||||||
|
{
|
||||||
|
public override bool Validate(SpellInfo spellInfo)
|
||||||
|
{
|
||||||
|
return ValidateSpellInfo(SpellIds.BlindingSleetSlow);
|
||||||
|
}
|
||||||
|
|
||||||
|
void HandleOnRemove(AuraEffect aurEff, AuraEffectHandleModes mode)
|
||||||
|
{
|
||||||
|
if (GetTargetApplication().GetRemoveMode() == AuraRemoveMode.Expire)
|
||||||
|
GetTarget().CastSpell(GetTarget(), SpellIds.BlindingSleetSlow, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Register()
|
||||||
|
{
|
||||||
|
AfterEffectRemove.Add(new EffectApplyHandler(HandleOnRemove, 0, AuraType.ModConfuse, AuraEffectHandleModes.Real));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[Script] // 50842 - Blood Boil
|
[Script] // 50842 - Blood Boil
|
||||||
class spell_dk_blood_boil : SpellScript
|
class spell_dk_blood_boil : SpellScript
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user