mirror of
https://github.com/araxiaonline/RandomScriptsforAzerothCore.git
synced 2026-06-13 10:22:22 -04:00
Add files via upload
This commit is contained in:
13
Faction_Shared/DinkleRez.lua
Normal file
13
Faction_Shared/DinkleRez.lua
Normal 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)
|
||||
Reference in New Issue
Block a user