mirror of
https://github.com/ornfelt/azerothcore_lua_scripts
synced 2026-08-22 06:26:03 -04:00
18 lines
465 B
Lua
18 lines
465 B
Lua
local cmd = "buff"
|
|
|
|
local auras = { 71954 }
|
|
|
|
local function OnCommand(event, player, command)
|
|
if command == cmd then
|
|
if not player:IsInCombat() then
|
|
for i = 2, #auras, 1 do
|
|
player:AddAura(auras[i], player)
|
|
end
|
|
player:CastSpell(player, auras[1], true)
|
|
else
|
|
player:SendNotification("You're in combat!")
|
|
end
|
|
return false
|
|
end
|
|
end
|
|
RegisterPlayerEvent(42, OnCommand)
|