This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |