Cleanup scripts and removed not needed ones.

This commit is contained in:
hondacrx
2017-07-21 11:59:42 -04:00
parent 40a4685a9c
commit 54fc79fced
16 changed files with 24 additions and 404 deletions
+1 -1
View File
@@ -1671,7 +1671,7 @@ namespace Scripts.Spells.Generic
}
}
[Script] // 28720 - Nightmare Vine
// 28720 - Nightmare Vine
class spell_gen_nightmare_vine : SpellScript
{
public override bool Validate(SpellInfo spellInfo)
-48
View File
@@ -153,30 +153,6 @@ namespace Scripts.Spells.Hunter
}
}
// 82926 - Fire!
[Script]
class spell_hun_fire : AuraScript
{
void HandleEffectCalcSpellMod(AuraEffect aurEff, ref SpellModifier spellMod)
{
if (spellMod == null)
{
spellMod = new SpellModifier(GetAura());
spellMod.op = SpellModOp.CastingTime;
spellMod.type = SpellModType.Pct;
spellMod.spellId = GetId();
spellMod.mask = GetSpellInfo().GetEffect(aurEff.GetEffIndex()).SpellClassMask;
}
spellMod.value = -aurEff.GetAmount();
}
public override void Register()
{
DoEffectCalcSpellMod.Add(new EffectCalcSpellModHandler(HandleEffectCalcSpellMod, 0, AuraType.Dummy));
}
}
[Script] // 109304 - Exhilaration
class spell_hun_exhilaration : SpellScript
{
@@ -245,30 +221,6 @@ namespace Scripts.Spells.Hunter
}
}
// -19464 Improved Serpent Sting
[Script]
class spell_hun_improved_serpent_sting : AuraScript
{
void HandleEffectCalcSpellMod(AuraEffect aurEff, ref SpellModifier spellMod)
{
if (spellMod == null)
{
spellMod = new SpellModifier(GetAura());
spellMod.op = (SpellModOp)aurEff.GetMiscValue();
spellMod.type = SpellModType.Pct;
spellMod.spellId = GetId();
spellMod.mask = GetSpellInfo().GetEffect(aurEff.GetEffIndex()).SpellClassMask;
}
spellMod.value = aurEff.GetAmount();
}
public override void Register()
{
DoEffectCalcSpellMod.Add(new EffectCalcSpellModHandler(HandleEffectCalcSpellMod, 0, AuraType.Dummy));
}
}
// 53478 - Last Stand Pet
[Script]
class spell_hun_last_stand_pet : SpellScript
+1 -1
View File
@@ -746,7 +746,7 @@ namespace Scripts.Spells.Items
}
[Script] // 71564 - Deadly Precision
class spell_item_deadly_precision_charm : AuraScript
class spell_item_deadly_precision : AuraScript
{
void HandleStackDrop(AuraEffect aurEff, ProcEventInfo eventInfo)
{
+1 -1
View File
@@ -550,7 +550,7 @@ namespace Scripts.Spells.Mage
// @todo move out of here and rename - not a mage spell
// 32826 - Polymorph (Visual)
[Script]
class spell_mage_polymorph_cast_visual : SpellScript
class spell_mage_polymorph_visual : SpellScript
{
uint[] PolymorhForms =
{
+2 -2
View File
@@ -54,12 +54,12 @@ namespace Scripts.Spells.Monk
public override void Register()
{
OnEffectPeriodic.Add(new EffectPeriodicHandler(OnTick, 0, Framework.Constants.AuraType.PeriodicDamage));
OnEffectPeriodic.Add(new EffectPeriodicHandler(OnTick, 0, AuraType.PeriodicDamage));
}
}
[Script] // 117959 - Crackling Jade Lightning
class spell_monk_crackling_jade_lightning_aura : AuraScript
class spell_monk_crackling_jade_lightning_knockback_proc_aura : AuraScript
{
public override bool Validate(SpellInfo spellInfo)
{
+1 -1
View File
@@ -1737,7 +1737,7 @@ namespace Scripts.Spells.Quest
// 39238 - Fumping
[Script]
class spell_q10929_fumpingAuraScript : AuraScript
class spell_q10929_fumping : AuraScript
{
public override bool Validate(SpellInfo spell)
{
+1 -14
View File
@@ -69,6 +69,7 @@ namespace Scripts.Spells.Rogue
}
}
[Script]
public class spell_rog_killing_spree_AuraScript : AuraScript
{
public override bool Validate(SpellInfo spellInfo)
@@ -118,20 +119,6 @@ namespace Scripts.Spells.Rogue
List<ObjectGuid> _targets = new List<ObjectGuid>();
}
[Script] // 70805 - Rogue T10 2P Bonus -- THIS SHOULD BE REMOVED WITH NEW PROC SYSTEM.
class spell_rog_t10_2p_bonus : AuraScript
{
bool CheckProc(ProcEventInfo eventInfo)
{
return eventInfo.GetActor() == eventInfo.GetActionTarget();
}
public override void Register()
{
DoCheckProc.Add(new CheckProcHandler(CheckProc));
}
}
[Script] // 2098 - Eviscerate
class spell_rog_eviscerate : SpellScript
{
+1 -1
View File
@@ -148,7 +148,7 @@ namespace Scripts.Spells.Warlock
}
[Script] // 603 - Bane of Doom
class spell_warl_curse_of_doom : AuraScript
class spell_warl_bane_of_doom : AuraScript
{
public override bool Validate(SpellInfo spellInfo)
{
-24
View File
@@ -221,30 +221,6 @@ namespace Scripts.Spells.Warrior
}
}
// 58387 - Glyph of Sunder Armor
[Script]
class spell_warr_glyph_of_sunder_armor : AuraScript
{
void HandleEffectCalcSpellMod(AuraEffect aurEff, ref SpellModifier spellMod)
{
if (spellMod == null)
{
spellMod = new SpellModifier(aurEff.GetBase());
spellMod.op = (SpellModOp)aurEff.GetMiscValue();
spellMod.type = SpellModType.Flat;
spellMod.spellId = GetId();
spellMod.mask = GetSpellInfo().GetEffect(aurEff.GetEffIndex()).SpellClassMask;
}
spellMod.value = aurEff.GetAmount();
}
public override void Register()
{
DoEffectCalcSpellMod.Add(new EffectCalcSpellModHandler(HandleEffectCalcSpellMod, 0, AuraType.Dummy));
}
}
[Script] // Heroic leap - 6544
class spell_warr_heroic_leap : SpellScript
{