Quantcast WoWInterface - View Single Post - Omen local variables confuses me - help ty :)
View Single Post
03-25-13, 01:42 PM   #1
fRodzet
A Flamescale Wyrmkin
Join Date: Mar 2013
Posts: 114
Omen local variables confuses me - help ty :)

So i was reading through Omens Threat Meter AddOn. But i'm abit confused to why he make such locals:

Lua Code:
  1. local floor, format, random, pairs, type = floor, format, random, pairs, type
  2. local tinsert, tremove, next, sort, wipe = tinsert, tremove, next, sort, wipe
  3. local RAID_CLASS_COLORS = RAID_CLASS_COLORS
  4. local UnitDetailedThreatSituation = UnitDetailedThreatSituation
  5. local UnitExists, UnitGUID, UnitName, UnitClass, UnitHealth = UnitExists, UnitGUID, UnitName, UnitClass, UnitHealth
  6. local UnitIsPlayer, UnitPlayerControlled, UnitCanAttack = UnitIsPlayer, UnitPlayerControlled, UnitCanAttack

note that they are equal on each side of the equation - why is that?

Ty
  Reply With Quote