2
Unit
4n0n edited this page 3 years ago
Bastion provides a Unit class which wraps away some of the complexity or annoyances of World of Warcraft's Unit functions. Aswell as providing the developer with cached and performant Aura access.
function Unit:__index(k)
function Unit:__tostring()
function Unit:New(unit)
function Unit:IsValid()
function Unit:Exists()
function Unit:Token()
function Unit:GetName()
function Unit:GetGUID()
function Unit:GetHealth()
function Unit:GetMaxHealth()
function Unit:GetHP()
function Unit:GetHealthPercent()
function Unit:GetPowerType()
function Unit:GetPower(powerType)
function Unit:GetMaxPower(powerType)
function Unit:GetPowerRegen(powerType)
function Unit:GetTimeToPowerPercent(powerType, percent)
function Unit:GetPP(powerType)
function Unit:GetPowerDeficit(powerType)
function Unit:GetPosition()
function Unit:GetDistance(unit)
function Unit:IsDead()
function Unit:IsAlive()
function Unit:IsPet()
function Unit:IsFriendly()
function Unit:IsEnemy()
function Unit:IsHostile()
function Unit:IsBoss()
function Unit:IsTarget()
function Unit:IsFocus()
function Unit:IsMouseover()
function Unit:IsTank()
function Unit:IsHealer()
function Unit:IsDamage()
function Unit:IsPlayer()
function Unit:IsPCU()
function Unit:IsAffectingCombat()
function Unit:GetClass()
function Unit:GetAuras()
function Unit:GetRawUnit()
function Unit:InMelee(unit)
function Unit:CanSee(unit)
function Unit:IsCasting()
function Unit:GetCastingOrChannelingSpell()
function Unit:IsChanneling()
function Unit:IsCastingOrChanneling()
function Unit:CanAttack(unit)
function Unit:GetChannelOrCastPercentComplete()
function Unit:IsInterruptible()
function Unit:IsInterruptibleAt(percent)
function Unit:GetEnemies(range)
function Unit:GetMeleeAttackers()
function Unit:GetPartyHPAround(distance, percent)
function Unit:IsMoving()
function Unit:IsMovingAtAll()
function Unit:GetComboPoints()
function Unit:GetComboPointsMax()
function Unit:GetComboPointsDeficit()
function Unit:IsUnit(unit)
function Unit:IsTanking(unit)
function Unit:IsFacing(unit)
function Unit:IsBehind(unit)
function Unit:GetMeleeBoost()
function Unit:InMelee(unit)
function Unit:GetID()
function Unit:IsInParty()
function Unit:LinearRegression(time, percent)
function Unit:PredictHealth(time)
function Unit:PredictTime(percent)
function Unit:TimeToDie()
function Unit:GetCombatTime()
function Unit:GetGCD()
function Unit:GetMaxGCD()
function Unit:IsStealthed()
function Unit:GetSwingTimers()
function Unit:WatchForSwings()
function Unit:GetTimeToShurikenTornado(n)