eluna-scripts-ornfelt/lua/WowEmulationScriptPack/Lua/ZoneAurasReCastRandom.lua

18 lines
438 B
Lua
Raw Permalink Normal View History

2023-08-16 00:50:59 +02:00
--[[ Test add aura on zone, map change ]]
local Apply = {26393}
local function Add_Aura_Map_Zone_Change(event, player, newZone, newArea)
if not player:HasAura(32728) then
for k, v in pairs(Apply) do
player:AddAura(v, player)
end
end
end
RegisterPlayerEvent(27, Add_Aura_Map_Zone_Change)-- PLAYER_EVENT_ON_UPDATE_ZONE
RegisterPlayerEvent(28, Add_Aura_Map_Zone_Change)-- PLAYER_EVENT_ON_MAP_CHANGE