From 2421ce12c326df2dc605627122cc8285f1b4e9b0 Mon Sep 17 00:00:00 2001 From: Dinkledork <118951051+Day36512@users.noreply.github.com> Date: Fri, 17 Mar 2023 09:26:29 -0600 Subject: [PATCH] Add files via upload --- Hardcore.lua | 2 ++ SkeletalWarrior.lua | 2 +- Smolder.lua | 1 + SoL.lua | 12 ++++++++++++ 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 SoL.lua diff --git a/Hardcore.lua b/Hardcore.lua index f6b1883..c0431ce 100644 --- a/Hardcore.lua +++ b/Hardcore.lua @@ -45,6 +45,8 @@ function OnHardCore(event, player, unit, sender, intid, code) player:RemoveItem(10594, player:GetItemCount(10594)) player:RemoveItem(65000, player:GetItemCount(65000)) player:RemoveSpell(24939) + player:RemoveSpell(100117) + player:RemoveSpell(100117) --else gossip ends else player:GossipComplete() diff --git a/SkeletalWarrior.lua b/SkeletalWarrior.lua index 7d72b3a..75a11ae 100644 --- a/SkeletalWarrior.lua +++ b/SkeletalWarrior.lua @@ -18,7 +18,7 @@ creature:RemoveEvents() end function SkeletalWarrior.OnDeath(event, creature, killer) - creature:DespawnOrUnsummon(5000) + creature:DespawnOrUnsummon(10000) creature:RemoveEvents() end diff --git a/Smolder.lua b/Smolder.lua index 3fdc8ea..2ce841f 100644 --- a/Smolder.lua +++ b/Smolder.lua @@ -71,6 +71,7 @@ creature:RegisterEvent(CastBellowingRoar, 33000, 0) end local function OnLeaveCombat(event, creature) +healthCheck = false creature:RemoveEvents() end diff --git a/SoL.lua b/SoL.lua new file mode 100644 index 0000000..2e7b65f --- /dev/null +++ b/SoL.lua @@ -0,0 +1,12 @@ +-- AzerothCore Eluna script by Dinkledork +local SPELL_SURGE_OF_LIGHT_1 = 33151 +local SPELL_CUSTOM = 100205 + +local function OnSpellCast(event, player, spell, skipCheck) + local spellId = spell:GetEntry() + if spellId == SPELL_SURGE_OF_LIGHT_1 then + player:CastSpell(player, SPELL_CUSTOM, true) + end +end + +RegisterPlayerEvent(5, OnSpellCast)