From 54fc79fced11b1d2e2a041eab77d9948de67d54a Mon Sep 17 00:00:00 2001 From: hondacrx Date: Fri, 21 Jul 2017 11:59:42 -0400 Subject: [PATCH] Cleanup scripts and removed not needed ones. --- Scripts/EasternKingdoms/EversongWoods.cs | 275 ------------------ .../Ahnkahet/BossJedogaShadowseeker.cs | 25 +- .../IcecrownCitadel/GunshipBattle.cs | 1 - .../IcecrownCitadel/IcecrownCitadel.cs | 4 +- .../Nexus/Nexus/BossMagusTelestra.cs | 17 +- Scripts/Northrend/Ulduar/Xt002.cs | 4 +- Scripts/Scripts.csproj | 1 - Scripts/Spells/Generic.cs | 2 +- Scripts/Spells/Hunter.cs | 48 --- Scripts/Spells/Items.cs | 2 +- Scripts/Spells/Mage.cs | 2 +- Scripts/Spells/Monk.cs | 4 +- Scripts/Spells/Quest.cs | 2 +- Scripts/Spells/Rogue.cs | 15 +- Scripts/Spells/Warlock.cs | 2 +- Scripts/Spells/Warrior.cs | 24 -- 16 files changed, 24 insertions(+), 404 deletions(-) delete mode 100644 Scripts/EasternKingdoms/EversongWoods.cs diff --git a/Scripts/EasternKingdoms/EversongWoods.cs b/Scripts/EasternKingdoms/EversongWoods.cs deleted file mode 100644 index c9e6f297f..000000000 --- a/Scripts/EasternKingdoms/EversongWoods.cs +++ /dev/null @@ -1,275 +0,0 @@ -/* - * Copyright (C) 2012-2017 CypherCore - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -using Framework.Constants; -using Framework.GameMath; -using Game; -using Game.AI; -using Game.Entities; -using Game.Scripting; - -namespace Scripts.EasternKingdoms -{ - [Script] - class npc_apprentice_mirveda : ScriptedAI - { - public npc_apprentice_mirveda(Creature creature) - : base(creature) - { - Summons = new SummonList(me); - } - - public override void Reset() - { - SetCombatMovement(false); - KillCount = 0; - PlayerGUID.Clear(); - Summons.DespawnAll(); - } - - public override void sQuestReward(Player player, Quest quest, uint opt) - { - if (quest.Id == QUEST_CORRUPTED_SOIL) - { - me.RemoveFlag64(UnitFields.NpcFlags, NPCFlags.QuestGiver); - _events.ScheduleEvent(EventTalk, 2000); - } - } - - public override void sQuestAccept(Player player, Quest quest) - { - if (quest.Id == QUEST_UNEXPECTED_RESULT) - { - me.SetFaction(FactionCombat); - me.RemoveFlag64(UnitFields.NpcFlags, NPCFlags.QuestGiver); - _events.ScheduleEvent(EventSummon, 1000); - PlayerGUID = player.GetGUID(); - } - } - - public override void EnterCombat(Unit who) - { - _events.ScheduleEvent(EventFireball, 1000); - } - - public override void JustSummoned(Creature summoned) - { - // This is the best I can do because AttackStart does nothing - summoned.GetMotionMaster().MovePoint(1, me.GetPositionX(), me.GetPositionY(), me.GetPositionZ()); - // summoned.AI().AttackStart(me); - Summons.Summon(summoned); - } - - public override void SummonedCreatureDies(Creature summoned, Unit who) - { - Summons.Despawn(summoned); - ++KillCount; - } - - public override void JustDied(Unit killer) - { - me.SetFaction(FactionNormal); - - if (!PlayerGUID.IsEmpty()) - { - Player player = Global.ObjAccessor.GetPlayer(me, PlayerGUID); - if (player) - player.FailQuest(QUEST_UNEXPECTED_RESULT); - } - } - - public override void UpdateAI(uint diff) - { - if (KillCount >= 3 && !PlayerGUID.IsEmpty()) - { - Player player = Global.ObjAccessor.GetPlayer(me, PlayerGUID); - if (player) - { - if (player.GetQuestStatus(QUEST_UNEXPECTED_RESULT) == QuestStatus.Incomplete) - { - player.CompleteQuest(QUEST_UNEXPECTED_RESULT); - me.SetFaction(FactionNormal); - me.SetFlag64(UnitFields.NpcFlags, NPCFlags.QuestGiver); - } - } - } - - _events.Update(diff); - _events.ExecuteEvents(eventId => - { - switch (eventId) - { - case EventTalk: - Talk(SayTestSoil); - _events.ScheduleEvent(EventAddQuestGiverFlag, 7000); - break; - case EventAddQuestGiverFlag: - me.SetFlag64(UnitFields.NpcFlags, NPCFlags.QuestGiver); - break; - case EventSummon: - me.SummonCreature(NPC_GHARZUL, 8749.505f, -7132.595f, 35.31983f, 3.816502f, TempSummonType.CorpseTimedDespawn, 180000); - me.SummonCreature(NPC_ANGERSHADE, 8755.38f, -7131.521f, 35.30957f, 3.816502f, TempSummonType.CorpseTimedDespawn, 180000); - me.SummonCreature(NPC_ANGERSHADE, 8753.199f, -7125.975f, 35.31986f, 3.816502f, TempSummonType.CorpseTimedDespawn, 180000); - break; - case EventFireball: - if (UpdateVictim()) - { - DoCastVictim(SpellFireball, true); // Not casting in combat - _events.ScheduleEvent(EventFireball, 3000); - } - break; - default: - break; - } - }); - DoMeleeAttackIfReady(); - } - - uint KillCount; - ObjectGuid PlayerGUID; - SummonList Summons; - - const uint EventTalk = 1; // Quest 8487 - const uint EventAddQuestGiverFlag = 2; // Quest 8487 - const uint EventSummon = 3; // Quest 8488 - const uint EventFireball = 4; // Quest 8488 - - // Creatures - const uint NPC_GHARZUL = 15958; // Quest 8488 - const uint NPC_ANGERSHADE = 15656; // Quest 8488 - - // Spells - const uint SpellTestSoil = 29535; // Quest 8487 - const uint SpellFireball = 20811; // Quest 8488 - - //Texts - const uint SayTestSoil = 0; // Quest 8487 - - // Factions - const uint FactionNormal = 1604; // Quest 8488 - const uint FactionCombat = 232; // Quest 8488 - - // Quest - const uint QUEST_CORRUPTED_SOIL = 8487; - const uint QUEST_UNEXPECTED_RESULT = 8488; - } - - [Script] - class npc_infused_crystal : ScriptedAI - { - public npc_infused_crystal(Creature creature) : base(creature) - { - SetCombatMovement(false); - } - - public override void Reset() - { - EndTimer = 0; - Completed = false; - Progress = false; - PlayerGUID.Clear(); - WaveTimer = 0; - } - - public override void MoveInLineOfSight(Unit who) - { - if (!Progress && who.IsTypeId(TypeId.Player) && me.IsWithinDistInMap(who, 10.0f)) - { - if (who.ToPlayer().GetQuestStatus(QuestPoweringOurDefenses) == QuestStatus.Incomplete) - { - PlayerGUID = who.GetGUID(); - WaveTimer = 1000; - EndTimer = 60000; - Progress = true; - } - } - } - - public override void JustSummoned(Creature summoned) - { - summoned.GetAI().AttackStart(me); - } - - public override void JustDied(Unit killer) - { - if (!PlayerGUID.IsEmpty() && !Completed) - { - Player player = Global.ObjAccessor.GetPlayer(me, PlayerGUID); - if (player) - player.FailQuest(QuestPoweringOurDefenses); - } - } - - public override void UpdateAI(uint diff) - { - if (EndTimer < diff && Progress) - { - Talk(Emote); - Completed = true; - if (!PlayerGUID.IsEmpty()) - { - Player player = Global.ObjAccessor.GetPlayer(me, PlayerGUID); - if (player) - player.CompleteQuest(QuestPoweringOurDefenses); - } - - me.DealDamage(me, (uint)me.GetHealth(), null, DamageEffectType.Direct, SpellSchoolMask.Normal, null, false); - me.RemoveCorpse(); - } - else EndTimer -= diff; - - if (WaveTimer < diff && !Completed && Progress) - { - uint ran1 = RandomHelper.Rand32() % 8; - uint ran2 = RandomHelper.Rand32() % 8; - uint ran3 = RandomHelper.Rand32() % 8; - me.SummonCreature(NpcEnragedWeaith, SpawnLocations[ran1].X, SpawnLocations[ran1].Y, SpawnLocations[ran1].Z, 0, TempSummonType.TimedOrCorpseDespawn, 10000); - me.SummonCreature(NpcEnragedWeaith, SpawnLocations[ran2].X, SpawnLocations[ran2].Y, SpawnLocations[ran2].Z, 0, TempSummonType.TimedOrCorpseDespawn, 10000); - me.SummonCreature(NpcEnragedWeaith, SpawnLocations[ran3].X, SpawnLocations[ran3].Y, SpawnLocations[ran3].Z, 0, TempSummonType.TimedOrCorpseDespawn, 10000); - WaveTimer = 30000; - } - else WaveTimer -= diff; - } - - uint EndTimer; - uint WaveTimer; - bool Completed; - bool Progress; - ObjectGuid PlayerGUID; - - // Quest - const uint QuestPoweringOurDefenses = 8490; - - // Says - const uint Emote = 0; - - // Creatures - const uint NpcEnragedWeaith = 17086; - - static Vector3[] SpawnLocations = - { - new Vector3(8270.68f, -7188.53f, 139.619f), - new Vector3(8284.27f, -7187.78f, 139.603f), - new Vector3(8297.43f, -7193.53f, 139.603f), - new Vector3(8303.5f, -7201.96f, 139.577f), - new Vector3(8273.22f, -7241.82f, 139.382f), - new Vector3(8254.89f, -7222.12f, 139.603f), - new Vector3(8278.51f, -7242.13f, 139.162f), - new Vector3(8267.97f, -7239.17f, 139.517f) - }; - } -} diff --git a/Scripts/Northrend/AzjolNerub/Ahnkahet/BossJedogaShadowseeker.cs b/Scripts/Northrend/AzjolNerub/Ahnkahet/BossJedogaShadowseeker.cs index cec4e48ba..c28b8e42c 100644 --- a/Scripts/Northrend/AzjolNerub/Ahnkahet/BossJedogaShadowseeker.cs +++ b/Scripts/Northrend/AzjolNerub/Ahnkahet/BossJedogaShadowseeker.cs @@ -31,9 +31,8 @@ namespace Scripts.Northrend.AzjolNerub.Ahnkahet.JedogaShadowseeker public const uint LightningBolt = 56891; // 40y public const uint Thundershock = 56926; // 30y - public const uint RandomLightningVisual = 56327; - public const uint SacrificeBeam = 56150; - public const uint SacrificeVisual = 56133; + public const uint BeamVisualJedogasAufseher1 = 60342; + public const uint BeamVisualJedogasAufseher2 = 56312; } struct TextIds @@ -62,6 +61,7 @@ namespace Scripts.Northrend.AzjolNerub.Ahnkahet.JedogaShadowseeker { public boss_jedoga_shadowseeker(Creature creature) : base(creature) { + Initialize(); instance = creature.GetInstanceScript(); bFirstTime = true; bPreDone = false; @@ -86,8 +86,6 @@ namespace Scripts.Northrend.AzjolNerub.Ahnkahet.JedogaShadowseeker { Initialize(); - DoCast(SpellIds.RandomLightningVisual); - if (!bFirstTime) instance.SetBossState(DataTypes.JedogaShadowseeker, EncounterState.Fail); @@ -329,9 +327,9 @@ namespace Scripts.Northrend.AzjolNerub.Ahnkahet.JedogaShadowseeker } [Script] - class npc_jedoga_twilight_volunteer : ScriptedAI + class npc_jedoga_initiand : ScriptedAI { - public npc_jedoga_twilight_volunteer(Creature creature) : base(creature) + public npc_jedoga_initiand(Creature creature) : base(creature) { Initialize(); instance = creature.GetInstanceScript(); @@ -485,10 +483,11 @@ namespace Scripts.Northrend.AzjolNerub.Ahnkahet.JedogaShadowseeker bool bWalking; } + [Script] - class npc_jedoga_controller : ScriptedAI + class npc_jedogas_aufseher_trigger : ScriptedAI { - public npc_jedoga_controller(Creature creature) : base(creature) + public npc_jedogas_aufseher_trigger(Creature creature) : base(creature) { instance = creature.GetInstanceScript(); bRemoved = false; @@ -500,13 +499,11 @@ namespace Scripts.Northrend.AzjolNerub.Ahnkahet.JedogaShadowseeker } public override void Reset() { } - public override void EnterCombat(Unit who) { } - public override void AttackStart(Unit victim) { } - public override void MoveInLineOfSight(Unit who) { } + public override void UpdateAI(uint diff) { if (!bRemoved && me.GetPositionX() > 440.0f) @@ -519,7 +516,7 @@ namespace Scripts.Northrend.AzjolNerub.Ahnkahet.JedogaShadowseeker } if (!bCast) { - //DoCast(me, JedogaShadowseekerConst.SpellBeamVisualJedogasAufseher1, false); + DoCast(me, SpellIds.BeamVisualJedogasAufseher1, false); bCast = true; } } @@ -527,7 +524,7 @@ namespace Scripts.Northrend.AzjolNerub.Ahnkahet.JedogaShadowseeker { if (!bCast2 && instance.GetData(DataTypes.JedogaTriggerSwitch) != 0) { - //DoCast(me, JedogaShadowseekerConst.SpellBeamVisualJedogasAufseher2, false); + DoCast(me, SpellIds.BeamVisualJedogasAufseher2, false); bCast2 = true; } if (bCast2 && instance.GetData(DataTypes.JedogaTriggerSwitch) == 0) diff --git a/Scripts/Northrend/IcecrownCitadel/GunshipBattle.cs b/Scripts/Northrend/IcecrownCitadel/GunshipBattle.cs index 0dc48a510..bc69f597c 100644 --- a/Scripts/Northrend/IcecrownCitadel/GunshipBattle.cs +++ b/Scripts/Northrend/IcecrownCitadel/GunshipBattle.cs @@ -1551,7 +1551,6 @@ namespace Scripts.Northrend.IcecrownCitadel } } - [Script] [Script] class npc_gunship_gunner : gunship_npc_AI { diff --git a/Scripts/Northrend/IcecrownCitadel/IcecrownCitadel.cs b/Scripts/Northrend/IcecrownCitadel/IcecrownCitadel.cs index 3d1cbb107..02f150fe0 100644 --- a/Scripts/Northrend/IcecrownCitadel/IcecrownCitadel.cs +++ b/Scripts/Northrend/IcecrownCitadel/IcecrownCitadel.cs @@ -123,9 +123,9 @@ namespace Scripts.Northrend.IcecrownCitadel // at Light's Hammer [Script] - class npc_highlord_tirion_fordring : ScriptedAI + class npc_highlord_tirion_fordring_lh : ScriptedAI { - public npc_highlord_tirion_fordring(Creature creature) + public npc_highlord_tirion_fordring_lh(Creature creature) : base(creature) { _instance = creature.GetInstanceScript(); diff --git a/Scripts/Northrend/Nexus/Nexus/BossMagusTelestra.cs b/Scripts/Northrend/Nexus/Nexus/BossMagusTelestra.cs index cab6ddbc8..739b3a9cd 100644 --- a/Scripts/Northrend/Nexus/Nexus/BossMagusTelestra.cs +++ b/Scripts/Northrend/Nexus/Nexus/BossMagusTelestra.cs @@ -296,9 +296,7 @@ namespace Scripts.Northrend.Nexus.Nexus [Script] class achievement_split_personality : AchievementCriteriaScript { - public achievement_split_personality() : base("achievement_split_personality") - { - } + public achievement_split_personality() : base("achievement_split_personality") { } public override bool OnCheck(Player player, Unit target) { @@ -313,17 +311,4 @@ namespace Scripts.Northrend.Nexus.Nexus return false; } } - - [Script] - class spell_gravity_well_effect : SpellScript - { - void HandleDummy(uint index) - { - - } - - public override void Register() - { - } - } } diff --git a/Scripts/Northrend/Ulduar/Xt002.cs b/Scripts/Northrend/Ulduar/Xt002.cs index 129cfb4c2..be808bf1b 100644 --- a/Scripts/Northrend/Ulduar/Xt002.cs +++ b/Scripts/Northrend/Ulduar/Xt002.cs @@ -122,9 +122,9 @@ namespace Scripts.Northrend.Ulduar.Xt002 } [Script] - class boss_xt002_ : BossAI + class boss_xt002 : BossAI { - public boss_xt002_(Creature creature) : base(creature, BossIds.Xt002) + public boss_xt002(Creature creature) : base(creature, BossIds.Xt002) { Initialize(); _transferHealth = 0; diff --git a/Scripts/Scripts.csproj b/Scripts/Scripts.csproj index 282afa34d..c9ac2c5e6 100644 --- a/Scripts/Scripts.csproj +++ b/Scripts/Scripts.csproj @@ -84,7 +84,6 @@ - diff --git a/Scripts/Spells/Generic.cs b/Scripts/Spells/Generic.cs index 40efcbae8..1ed6a068b 100644 --- a/Scripts/Spells/Generic.cs +++ b/Scripts/Spells/Generic.cs @@ -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) diff --git a/Scripts/Spells/Hunter.cs b/Scripts/Spells/Hunter.cs index 27a9ab9af..183f9bec2 100644 --- a/Scripts/Spells/Hunter.cs +++ b/Scripts/Spells/Hunter.cs @@ -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 diff --git a/Scripts/Spells/Items.cs b/Scripts/Spells/Items.cs index 97c28c70f..c188c3bcd 100644 --- a/Scripts/Spells/Items.cs +++ b/Scripts/Spells/Items.cs @@ -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) { diff --git a/Scripts/Spells/Mage.cs b/Scripts/Spells/Mage.cs index cfd4cfef1..647d7adf0 100644 --- a/Scripts/Spells/Mage.cs +++ b/Scripts/Spells/Mage.cs @@ -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 = { diff --git a/Scripts/Spells/Monk.cs b/Scripts/Spells/Monk.cs index 3ef587d21..37b3ae34f 100644 --- a/Scripts/Spells/Monk.cs +++ b/Scripts/Spells/Monk.cs @@ -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) { diff --git a/Scripts/Spells/Quest.cs b/Scripts/Spells/Quest.cs index 59ce37c33..81f3c26f0 100644 --- a/Scripts/Spells/Quest.cs +++ b/Scripts/Spells/Quest.cs @@ -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) { diff --git a/Scripts/Spells/Rogue.cs b/Scripts/Spells/Rogue.cs index 2b62c60a1..4a1d786d3 100644 --- a/Scripts/Spells/Rogue.cs +++ b/Scripts/Spells/Rogue.cs @@ -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 _targets = new List(); } - [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 { diff --git a/Scripts/Spells/Warlock.cs b/Scripts/Spells/Warlock.cs index 904d82986..4a8435bf7 100644 --- a/Scripts/Spells/Warlock.cs +++ b/Scripts/Spells/Warlock.cs @@ -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) { diff --git a/Scripts/Spells/Warrior.cs b/Scripts/Spells/Warrior.cs index d6e7c6f49..f7cd8e608 100644 --- a/Scripts/Spells/Warrior.cs +++ b/Scripts/Spells/Warrior.cs @@ -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 {