Skip to content

Instantly share code, notes, and snippets.

function (self, unitId, unitFrame, envTable, modTable)
-- Only proceed if the unit is an enemy
if unitFrame.ActorType ~= "friendlyplayer" and unitFrame.ActorType ~= "friendlynpc" then
envTable.spec = GetSpecialization()
-- Check if the class is not Warlock (class ID 9)
if envTable.class ~= 9 then
-- Assign kick ability based on class and specialization
envTable.kickId = modTable.kickIndex[envTable.class][envTable.spec]
else