Add files via upload

This commit is contained in:
Dinkledork
2023-03-10 17:22:11 -07:00
committed by GitHub
parent 1733798d60
commit bfc1221109
11 changed files with 231 additions and 32 deletions

13
DinkleRez.lua Normal file
View File

@@ -0,0 +1,13 @@
local SPELL_ID = 100191
local AURA_1 = 100003
local AURA_2 = 100168
function OnKilledByCreature(event, killer, killed)
if (killed:HasAura(AURA_1) or killed:HasAura(AURA_2)) then
if not killed:HasSpellCooldown(SPELL_ID) then
killed:CastSpell(killed, SPELL_ID, false)
end
end
end
RegisterPlayerEvent(8, OnKilledByCreature)