Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
LuaUnit Namespace Reference

Functions

int AddAura (lua_State *L, Unit *unit)
int AddUnitState (lua_State *L, Unit *unit)
int Attack (lua_State *L, Unit *unit)
int AttackStop (lua_State *L, Unit *unit)
int CastSpell (lua_State *L, Unit *unit)
int CastSpellAoF (lua_State *L, Unit *unit)
int ClearInCombat (lua_State *L, Unit *unit)
int ClearThreatList (lua_State *L, Unit *unit)
int ClearUnitState (lua_State *L, Unit *unit)
int CountPctFromCurHealth (lua_State *L, Unit *unit)
int CountPctFromMaxHealth (lua_State *L, Unit *unit)
int DealDamage (lua_State *L, Unit *unit)
int DeMorph (lua_State *L, Unit *unit)
int DisableMelee (lua_State *L, Unit *unit)
int Dismount (lua_State *L, Unit *unit)
int Emote (lua_State *L, Unit *unit)
int GetAura (lua_State *L, Unit *unit)
int GetBaseSpellPower (lua_State *L, Unit *unit)
int GetCharmerGUID (lua_State *L, Unit *unit)
int GetCharmGUID (lua_State *L, Unit *unit)
int GetClass (lua_State *L, Unit *unit)
int GetClassAsString (lua_State *L, Unit *unit)
int GetCombatTime (lua_State *L, Unit *unit)
int GetControllerGUID (lua_State *L, Unit *unit)
int GetControllerGUIDS (lua_State *L, Unit *unit)
int GetCreatorGUID (lua_State *L, Unit *unit)
int GetCreatureType (lua_State *L, Unit *unit)
int GetCritterGUID (lua_State *L, Unit *unit)
int GetCurrentSpell (lua_State *L, Unit *unit)
int GetDisplayId (lua_State *L, Unit *unit)
int GetDistance (lua_State *L, Unit *unit)
int GetFaction (lua_State *L, Unit *unit)
int GetFriendlyUnitsInRange (lua_State *L, Unit *unit)
int GetGender (lua_State *L, Unit *unit)
int GetHealth (lua_State *L, Unit *unit)
int GetHealthPct (lua_State *L, Unit *unit)
int GetLevel (lua_State *L, Unit *unit)
int GetMap (lua_State *L, Unit *unit)
int GetMaxHealth (lua_State *L, Unit *unit)
int GetMaxPower (lua_State *L, Unit *unit)
int GetMinionGUID (lua_State *L, Unit *unit)
int GetMountDisplayId (lua_State *L, Unit *unit)
int GetNativeDisplayId (lua_State *L, Unit *unit)
int GetNearbyTarget (lua_State *L, Unit *unit)
int GetOwner (lua_State *L, Unit *unit)
int GetOwnerGUID (lua_State *L, Unit *unit)
int GetPetGUID (lua_State *L, Unit *unit)
int GetPower (lua_State *L, Unit *unit)
int GetPowerPct (lua_State *L, Unit *unit)
int GetPowerType (lua_State *L, Unit *unit)
int GetRace (lua_State *L, Unit *unit)
int GetRelativePoint (lua_State *L, Unit *unit)
int GetStandState (lua_State *L, Unit *unit)
int GetStat (lua_State *L, Unit *unit)
int GetUnfriendlyUnitsInRange (lua_State *L, Unit *unit)
int GetVehicle (lua_State *L, Unit *unit)
int GetVictim (lua_State *L, Unit *unit)
int HasUnitState (lua_State *L, Unit *unit)
int HealthAbovePct (lua_State *L, Unit *unit)
int HealthBelowPct (lua_State *L, Unit *unit)
int InterruptSpell (lua_State *L, Unit *unit)
int IsAlive (lua_State *L, Unit *unit)
int IsArmorer (lua_State *L, Unit *unit)
int IsAttackingPlayer (lua_State *L, Unit *unit)
int IsAuctioneer (lua_State *L, Unit *unit)
int IsBanker (lua_State *L, Unit *unit)
int IsBattleMaster (lua_State *L, Unit *unit)
int IsCharmed (lua_State *L, Unit *unit)
int IsDead (lua_State *L, Unit *unit)
int IsDying (lua_State *L, Unit *unit)
int IsFlying (lua_State *L, Unit *unit)
int IsFullHealth (lua_State *L, Unit *unit)
int IsGossip (lua_State *L, Unit *unit)
int IsGuildMaster (lua_State *L, Unit *unit)
int IsInAccessiblePlaceFor (lua_State *L, Unit *unit)
int IsInCombat (lua_State *L, Unit *unit)
int IsInnkeeper (lua_State *L, Unit *unit)
int IsInWater (lua_State *L, Unit *unit)
int IsInWorld (lua_State *L, Unit *unit)
int IsMounted (lua_State *L, Unit *unit)
int IsMoving (lua_State *L, Unit *unit)
int IsPvPFlagged (lua_State *L, Unit *unit)
int IsQuestGiver (lua_State *L, Unit *unit)
int IsServiceProvider (lua_State *L, Unit *unit)
int IsSpiritGuide (lua_State *L, Unit *unit)
int IsSpiritHealer (lua_State *L, Unit *unit)
int IsSpiritService (lua_State *L, Unit *unit)
int IsStopped (lua_State *L, Unit *unit)
int IsTabardDesigner (lua_State *L, Unit *unit)
int IsTaxi (lua_State *L, Unit *unit)
int IsTrainer (lua_State *L, Unit *unit)
int IsUnderWater (lua_State *L, Unit *unit)
int IsVendor (lua_State *L, Unit *unit)
int IsVisible (lua_State *L, Unit *unit)
int IsWithinDistInMap (lua_State *L, Unit *unit)
int IsWithinLoS (lua_State *L, Unit *unit)
int Jump (lua_State *L, Unit *unit)
int JumpTo (lua_State *L, Unit *unit)
int JumpToCoords (lua_State *L, Unit *unit)
int Kill (lua_State *L, Unit *unit)
int KnockbackFrom (lua_State *L, Unit *unit)
int Mount (lua_State *L, Unit *unit)
int MoveCharge (lua_State *L, Unit *unit)
int MoveChase (lua_State *L, Unit *unit)
int MoveClear (lua_State *L, Unit *unit)
int MoveFollow (lua_State *L, Unit *unit)
int MoveRandom (lua_State *L, Unit *unit)
int MoveRotate (lua_State *L, Unit *unit)
int MoveTo (lua_State *L, Unit *unit)
int PlayDirectSound (lua_State *L, Unit *unit)
int PlayDistanceSound (lua_State *L, Unit *unit)
int RegisterEvent (lua_State *L, Unit *unit)
int RemoveAllAuras (lua_State *L, Unit *unit)
int RemoveAura (lua_State *L, Unit *unit)
int RemoveBindSightAuras (lua_State *L, Unit *unit)
int RemoveCharmAuras (lua_State *L, Unit *unit)
int RemoveEventById (lua_State *L, Unit *unit)
int RemoveEvents (lua_State *L, Unit *unit)
int RestoreDisplayId (lua_State *L, Unit *unit)
int RestoreFaction (lua_State *L, Unit *unit)
int SendChatMessageToPlayer (lua_State *L, Unit *unit)
int SendUnitEmote (lua_State *L, Unit *unit)
int SendUnitSay (lua_State *L, Unit *unit)
int SendUnitWhisper (lua_State *L, Unit *unit)
int SendUnitYell (lua_State *L, Unit *unit)
int SetCanFly (lua_State *L, Unit *unit)
int SetCharmerGUID (lua_State *L, Unit *unit)
int SetConfused (lua_State *L, Unit *unit)
int SetCreatorGUID (lua_State *L, Unit *unit)
int SetCritterGUID (lua_State *L, Unit *unit)
int SetDisplayId (lua_State *L, Unit *unit)
int SetFacing (lua_State *L, Unit *unit)
int SetFaction (lua_State *L, Unit *unit)
int SetFeared (lua_State *L, Unit *unit)
int SetFFA (lua_State *L, Unit *unit)
int SetHealth (lua_State *L, Unit *unit)
int SetLevel (lua_State *L, Unit *unit)
int SetMaxHealth (lua_State *L, Unit *unit)
int SetMaxPower (lua_State *L, Unit *unit)
int SetMinionGUID (lua_State *L, Unit *unit)
int SetName (lua_State *L, Unit *unit)
int SetNativeDisplayId (lua_State *L, Unit *unit)
int SetOwnerGUID (lua_State *L, Unit *unit)
int SetPetGUID (lua_State *L, Unit *unit)
int SetPhaseMask (lua_State *L, Unit *unit)
int SetPower (lua_State *L, Unit *unit)
int SetPvP (lua_State *L, Unit *unit)
int SetRooted (lua_State *L, Unit *unit)
int SetSanctuary (lua_State *L, Unit *unit)
int SetSheath (lua_State *L, Unit *unit)
int SetSpeed (lua_State *L, Unit *unit)
int SetStunned (lua_State *L, Unit *unit)
int SetVisible (lua_State *L, Unit *unit)
int SetWaterWalk (lua_State *L, Unit *unit)
int SpawnCreature (lua_State *L, Unit *unit)
int StopMoving (lua_State *L, Unit *unit)
int StopSpellCast (lua_State *L, Unit *unit)
int SummonGameObject (lua_State *L, Unit *unit)
int SummonGuardian (lua_State *L, Unit *unit)

Function Documentation

◆ AddAura()

int LuaUnit::AddAura ( lua_State * L,
Unit * unit )

Definition at line 1236 of file UnitMethods.h.

◆ AddUnitState()

int LuaUnit::AddUnitState ( lua_State * L,
Unit * unit )

Definition at line 1462 of file UnitMethods.h.

References Unit::AddUnitState().

◆ Attack()

int LuaUnit::Attack ( lua_State * L,
Unit * unit )

Definition at line 12 of file UnitMethods.h.

References Unit::Attack(), and sEluna.

◆ AttackStop()

int LuaUnit::AttackStop ( lua_State * L,
Unit * unit )

Definition at line 1382 of file UnitMethods.h.

References Unit::AttackStop(), and sEluna.

◆ CastSpell()

◆ CastSpellAoF()

int LuaUnit::CastSpellAoF ( lua_State * L,
Unit * unit )

Definition at line 1174 of file UnitMethods.h.

References Unit::CastSpell().

◆ ClearInCombat()

int LuaUnit::ClearInCombat ( lua_State * L,
Unit * unit )

Definition at line 1199 of file UnitMethods.h.

References Unit::ClearInCombat().

◆ ClearThreatList()

int LuaUnit::ClearThreatList ( lua_State * L,
Unit * unit )

Definition at line 24 of file UnitMethods.h.

References ThreatManager::clearReferences(), and Unit::getThreatManager().

◆ ClearUnitState()

int LuaUnit::ClearUnitState ( lua_State * L,
Unit * unit )

Definition at line 1470 of file UnitMethods.h.

References Unit::ClearUnitState().

◆ CountPctFromCurHealth()

int LuaUnit::CountPctFromCurHealth ( lua_State * L,
Unit * unit )

Definition at line 347 of file UnitMethods.h.

References Unit::CountPctFromCurHealth(), and sEluna.

◆ CountPctFromMaxHealth()

int LuaUnit::CountPctFromMaxHealth ( lua_State * L,
Unit * unit )

Definition at line 353 of file UnitMethods.h.

References Unit::CountPctFromMaxHealth(), and sEluna.

◆ DealDamage()

int LuaUnit::DealDamage ( lua_State * L,
Unit * unit )

Definition at line 487 of file UnitMethods.h.

References Unit::DealDamage(), and sEluna.

◆ DeMorph()

int LuaUnit::DeMorph ( lua_State * L,
Unit * unit )

Definition at line 1140 of file UnitMethods.h.

References Unit::DeMorph().

◆ DisableMelee()

int LuaUnit::DisableMelee ( lua_State * L,
Unit * unit )

◆ Dismount()

int LuaUnit::Dismount ( lua_State * L,
Unit * unit )

◆ Emote()

int LuaUnit::Emote ( lua_State * L,
Unit * unit )

Definition at line 341 of file UnitMethods.h.

References Unit::HandleEmoteCommand().

◆ GetAura()

int LuaUnit::GetAura ( lua_State * L,
Unit * unit )

Definition at line 1185 of file UnitMethods.h.

◆ GetBaseSpellPower()

int LuaUnit::GetBaseSpellPower ( lua_State * L,
Unit * unit )

◆ GetCharmerGUID()

int LuaUnit::GetCharmerGUID ( lua_State * L,
Unit * unit )

Definition at line 169 of file UnitMethods.h.

References Unit::GetCharmerGUID(), and sEluna.

◆ GetCharmGUID()

int LuaUnit::GetCharmGUID ( lua_State * L,
Unit * unit )

Definition at line 175 of file UnitMethods.h.

References Unit::GetCharmGUID(), and sEluna.

◆ GetClass()

int LuaUnit::GetClass ( lua_State * L,
Unit * unit )

Definition at line 797 of file UnitMethods.h.

References Unit::getClass(), and sEluna.

◆ GetClassAsString()

int LuaUnit::GetClassAsString ( lua_State * L,
Unit * unit )

Definition at line 809 of file UnitMethods.h.

References Unit::getClass(), and sEluna.

◆ GetCombatTime()

int LuaUnit::GetCombatTime ( lua_State * L,
Unit * unit )

Definition at line 1193 of file UnitMethods.h.

References Unit::GetCombatTimer(), and sEluna.

◆ GetControllerGUID()

int LuaUnit::GetControllerGUID ( lua_State * L,
Unit * unit )

Definition at line 193 of file UnitMethods.h.

References Unit::GetCharmerOrOwnerGUID(), and sEluna.

◆ GetControllerGUIDS()

int LuaUnit::GetControllerGUIDS ( lua_State * L,
Unit * unit )

Definition at line 199 of file UnitMethods.h.

References Unit::GetCharmerOrOwnerOrOwnGUID(), and sEluna.

◆ GetCreatorGUID()

int LuaUnit::GetCreatorGUID ( lua_State * L,
Unit * unit )

Definition at line 157 of file UnitMethods.h.

References Unit::GetCreatorGUID(), and sEluna.

◆ GetCreatureType()

int LuaUnit::GetCreatureType ( lua_State * L,
Unit * unit )

Definition at line 803 of file UnitMethods.h.

References Unit::GetCreatureType(), and sEluna.

◆ GetCritterGUID()

int LuaUnit::GetCritterGUID ( lua_State * L,
Unit * unit )

Definition at line 187 of file UnitMethods.h.

References Unit::GetCritterGUID(), and sEluna.

◆ GetCurrentSpell()

int LuaUnit::GetCurrentSpell ( lua_State * L,
Unit * unit )

Definition at line 424 of file UnitMethods.h.

References CURRENT_MAX_SPELL, Unit::GetCurrentSpell(), and sEluna.

◆ GetDisplayId()

int LuaUnit::GetDisplayId ( lua_State * L,
Unit * unit )

Definition at line 656 of file UnitMethods.h.

References Unit::GetDisplayId(), and sEluna.

◆ GetDistance()

int LuaUnit::GetDistance ( lua_State * L,
Unit * unit )

Definition at line 142 of file UnitMethods.h.

References WorldObject::GetDistance(), Object::IsInWorld(), and sEluna.

◆ GetFaction()

int LuaUnit::GetFaction ( lua_State * L,
Unit * unit )

Definition at line 853 of file UnitMethods.h.

References Unit::getFaction(), and sEluna.

◆ GetFriendlyUnitsInRange()

int LuaUnit::GetFriendlyUnitsInRange ( lua_State * L,
Unit * unit )

Definition at line 1326 of file UnitMethods.h.

◆ GetGender()

int LuaUnit::GetGender ( lua_State * L,
Unit * unit )

Definition at line 785 of file UnitMethods.h.

References Unit::getGender(), and sEluna.

◆ GetHealth()

int LuaUnit::GetHealth ( lua_State * L,
Unit * unit )

Definition at line 674 of file UnitMethods.h.

References Unit::GetHealth(), and sEluna.

◆ GetHealthPct()

int LuaUnit::GetHealthPct ( lua_State * L,
Unit * unit )

Definition at line 772 of file UnitMethods.h.

References Unit::GetHealthPct(), and sEluna.

◆ GetLevel()

int LuaUnit::GetLevel ( lua_State * L,
Unit * unit )

Definition at line 668 of file UnitMethods.h.

References Unit::getLevel(), and sEluna.

◆ GetMap()

int LuaUnit::GetMap ( lua_State * L,
Unit * unit )

Definition at line 50 of file UnitMethods.h.

References WorldObject::GetMap(), and sEluna.

◆ GetMaxHealth()

int LuaUnit::GetMaxHealth ( lua_State * L,
Unit * unit )

Definition at line 766 of file UnitMethods.h.

References Unit::GetMaxHealth(), and sEluna.

◆ GetMaxPower()

int LuaUnit::GetMaxPower ( lua_State * L,
Unit * unit )

◆ GetMinionGUID()

int LuaUnit::GetMinionGUID ( lua_State * L,
Unit * unit )

Definition at line 163 of file UnitMethods.h.

References Unit::GetPetGUID(), and sEluna.

◆ GetMountDisplayId()

int LuaUnit::GetMountDisplayId ( lua_State * L,
Unit * unit )

Definition at line 136 of file UnitMethods.h.

References Unit::GetMountID(), and sEluna.

◆ GetNativeDisplayId()

int LuaUnit::GetNativeDisplayId ( lua_State * L,
Unit * unit )

Definition at line 662 of file UnitMethods.h.

References Unit::GetNativeDisplayId(), and sEluna.

◆ GetNearbyTarget()

int LuaUnit::GetNearbyTarget ( lua_State * L,
Unit * unit )

Definition at line 387 of file UnitMethods.h.

References Unit::SelectNearbyTarget(), and sEluna.

◆ GetOwner()

int LuaUnit::GetOwner ( lua_State * L,
Unit * unit )

Definition at line 38 of file UnitMethods.h.

References Unit::GetOwner(), and sEluna.

◆ GetOwnerGUID()

int LuaUnit::GetOwnerGUID ( lua_State * L,
Unit * unit )

Definition at line 44 of file UnitMethods.h.

References Unit::GetOwnerGUID(), and sEluna.

◆ GetPetGUID()

int LuaUnit::GetPetGUID ( lua_State * L,
Unit * unit )

Definition at line 181 of file UnitMethods.h.

References Unit::GetPetGUID(), and sEluna.

◆ GetPower()

int LuaUnit::GetPower ( lua_State * L,
Unit * unit )

◆ GetPowerPct()

int LuaUnit::GetPowerPct ( lua_State * L,
Unit * unit )

Definition at line 778 of file UnitMethods.h.

References Unit::GetMaxPower(), Unit::GetPower(), Unit::getPowerType(), and sEluna.

◆ GetPowerType()

int LuaUnit::GetPowerType ( lua_State * L,
Unit * unit )

Definition at line 760 of file UnitMethods.h.

References Unit::getPowerType(), and sEluna.

◆ GetRace()

int LuaUnit::GetRace ( lua_State * L,
Unit * unit )

Definition at line 791 of file UnitMethods.h.

References Unit::getRace(), and sEluna.

◆ GetRelativePoint()

int LuaUnit::GetRelativePoint ( lua_State * L,
Unit * unit )

◆ GetStandState()

int LuaUnit::GetStandState ( lua_State * L,
Unit * unit )

Definition at line 499 of file UnitMethods.h.

References Unit::getStandState(), and sEluna.

◆ GetStat()

int LuaUnit::GetStat ( lua_State * L,
Unit * unit )

Definition at line 205 of file UnitMethods.h.

References Unit::GetStat(), MAX_STATS, and sEluna.

◆ GetUnfriendlyUnitsInRange()

int LuaUnit::GetUnfriendlyUnitsInRange ( lua_State * L,
Unit * unit )

Definition at line 1354 of file UnitMethods.h.

◆ GetVehicle()

int LuaUnit::GetVehicle ( lua_State * L,
Unit * unit )

Definition at line 1320 of file UnitMethods.h.

References Unit::GetVehicle(), and sEluna.

◆ GetVictim()

int LuaUnit::GetVictim ( lua_State * L,
Unit * unit )

Definition at line 381 of file UnitMethods.h.

References Unit::GetVictim(), and sEluna.

◆ HasUnitState()

int LuaUnit::HasUnitState ( lua_State * L,
Unit * unit )

Definition at line 1478 of file UnitMethods.h.

References Unit::HasUnitState(), and sEluna.

◆ HealthAbovePct()

int LuaUnit::HealthAbovePct ( lua_State * L,
Unit * unit )

Definition at line 335 of file UnitMethods.h.

References Unit::HealthAbovePct(), and sEluna.

◆ HealthBelowPct()

int LuaUnit::HealthBelowPct ( lua_State * L,
Unit * unit )

Definition at line 329 of file UnitMethods.h.

References Unit::HealthBelowPct(), and sEluna.

◆ InterruptSpell()

int LuaUnit::InterruptSpell ( lua_State * L,
Unit * unit )

◆ IsAlive()

int LuaUnit::IsAlive ( lua_State * L,
Unit * unit )

Definition at line 1011 of file UnitMethods.h.

References Unit::IsAlive(), and sEluna.

◆ IsArmorer()

int LuaUnit::IsArmorer ( lua_State * L,
Unit * unit )

Definition at line 1053 of file UnitMethods.h.

References Unit::IsArmorer(), and sEluna.

◆ IsAttackingPlayer()

int LuaUnit::IsAttackingPlayer ( lua_State * L,
Unit * unit )

Definition at line 1059 of file UnitMethods.h.

References Unit::isAttackingPlayer(), and sEluna.

◆ IsAuctioneer()

int LuaUnit::IsAuctioneer ( lua_State * L,
Unit * unit )

Definition at line 263 of file UnitMethods.h.

References Unit::IsAuctioner(), and sEluna.

◆ IsBanker()

int LuaUnit::IsBanker ( lua_State * L,
Unit * unit )

Definition at line 1029 of file UnitMethods.h.

References Unit::IsBanker(), and sEluna.

◆ IsBattleMaster()

int LuaUnit::IsBattleMaster ( lua_State * L,
Unit * unit )

Definition at line 1041 of file UnitMethods.h.

References Unit::IsBattleMaster(), and sEluna.

◆ IsCharmed()

int LuaUnit::IsCharmed ( lua_State * L,
Unit * unit )

Definition at line 1047 of file UnitMethods.h.

References Unit::IsCharmed(), and sEluna.

◆ IsDead()

int LuaUnit::IsDead ( lua_State * L,
Unit * unit )

Definition at line 1017 of file UnitMethods.h.

References Unit::isDead(), and sEluna.

◆ IsDying()

int LuaUnit::IsDying ( lua_State * L,
Unit * unit )

Definition at line 1023 of file UnitMethods.h.

References Unit::isDying(), and sEluna.

◆ IsFlying()

int LuaUnit::IsFlying ( lua_State * L,
Unit * unit )

Definition at line 1414 of file UnitMethods.h.

References Unit::IsFlying(), and sEluna.

◆ IsFullHealth()

int LuaUnit::IsFullHealth ( lua_State * L,
Unit * unit )

Definition at line 109 of file UnitMethods.h.

References Unit::IsFullHealth(), and sEluna.

◆ IsGossip()

int LuaUnit::IsGossip ( lua_State * L,
Unit * unit )

Definition at line 287 of file UnitMethods.h.

References Unit::IsGossip(), and sEluna.

◆ IsGuildMaster()

int LuaUnit::IsGuildMaster ( lua_State * L,
Unit * unit )

Definition at line 269 of file UnitMethods.h.

References Unit::IsGuildMaster(), and sEluna.

◆ IsInAccessiblePlaceFor()

int LuaUnit::IsInAccessiblePlaceFor ( lua_State * L,
Unit * unit )

Definition at line 126 of file UnitMethods.h.

References Unit::isInAccessiblePlaceFor(), and sEluna.

◆ IsInCombat()

int LuaUnit::IsInCombat ( lua_State * L,
Unit * unit )

Definition at line 1077 of file UnitMethods.h.

References Unit::IsInCombat(), and sEluna.

◆ IsInnkeeper()

int LuaUnit::IsInnkeeper ( lua_State * L,
Unit * unit )

Definition at line 275 of file UnitMethods.h.

References Unit::IsInnkeeper(), and sEluna.

◆ IsInWater()

int LuaUnit::IsInWater ( lua_State * L,
Unit * unit )

Definition at line 375 of file UnitMethods.h.

References Unit::IsInWater(), and sEluna.

◆ IsInWorld()

int LuaUnit::IsInWorld ( lua_State * L,
Unit * unit )

Definition at line 1065 of file UnitMethods.h.

References Object::IsInWorld(), and sEluna.

◆ IsMounted()

int LuaUnit::IsMounted ( lua_State * L,
Unit * unit )

Definition at line 87 of file UnitMethods.h.

References Unit::IsMounted(), and sEluna.

◆ IsMoving()

int LuaUnit::IsMoving ( lua_State * L,
Unit * unit )

Definition at line 1408 of file UnitMethods.h.

References Unit::isMoving(), and sEluna.

◆ IsPvPFlagged()

int LuaUnit::IsPvPFlagged ( lua_State * L,
Unit * unit )

Definition at line 1071 of file UnitMethods.h.

References Unit::IsPvP(), and sEluna.

◆ IsQuestGiver()

int LuaUnit::IsQuestGiver ( lua_State * L,
Unit * unit )

Definition at line 1426 of file UnitMethods.h.

References Unit::IsQuestGiver(), and sEluna.

◆ IsServiceProvider()

int LuaUnit::IsServiceProvider ( lua_State * L,
Unit * unit )

Definition at line 317 of file UnitMethods.h.

References Unit::IsServiceProvider(), and sEluna.

◆ IsSpiritGuide()

int LuaUnit::IsSpiritGuide ( lua_State * L,
Unit * unit )

Definition at line 305 of file UnitMethods.h.

References Unit::IsSpiritGuide(), and sEluna.

◆ IsSpiritHealer()

int LuaUnit::IsSpiritHealer ( lua_State * L,
Unit * unit )

Definition at line 299 of file UnitMethods.h.

References Unit::IsSpiritHealer(), and sEluna.

◆ IsSpiritService()

int LuaUnit::IsSpiritService ( lua_State * L,
Unit * unit )

Definition at line 323 of file UnitMethods.h.

References Unit::IsSpiritService(), and sEluna.

◆ IsStopped()

int LuaUnit::IsStopped ( lua_State * L,
Unit * unit )

Definition at line 1420 of file UnitMethods.h.

References Unit::IsStopped(), and sEluna.

◆ IsTabardDesigner()

int LuaUnit::IsTabardDesigner ( lua_State * L,
Unit * unit )

Definition at line 311 of file UnitMethods.h.

References Unit::IsTabardDesigner(), and sEluna.

◆ IsTaxi()

int LuaUnit::IsTaxi ( lua_State * L,
Unit * unit )

Definition at line 293 of file UnitMethods.h.

References Unit::IsTaxi(), and sEluna.

◆ IsTrainer()

int LuaUnit::IsTrainer ( lua_State * L,
Unit * unit )

Definition at line 281 of file UnitMethods.h.

References Unit::IsTrainer(), and sEluna.

◆ IsUnderWater()

int LuaUnit::IsUnderWater ( lua_State * L,
Unit * unit )

Definition at line 369 of file UnitMethods.h.

References Unit::IsUnderWater(), and sEluna.

◆ IsVendor()

int LuaUnit::IsVendor ( lua_State * L,
Unit * unit )

Definition at line 1035 of file UnitMethods.h.

References Unit::IsVendor(), and sEluna.

◆ IsVisible()

int LuaUnit::IsVisible ( lua_State * L,
Unit * unit )

Definition at line 1402 of file UnitMethods.h.

References Unit::IsVisible(), and sEluna.

◆ IsWithinDistInMap()

int LuaUnit::IsWithinDistInMap ( lua_State * L,
Unit * unit )

Definition at line 115 of file UnitMethods.h.

References WorldObject::IsWithinDistInMap(), and sEluna.

◆ IsWithinLoS()

int LuaUnit::IsWithinLoS ( lua_State * L,
Unit * unit )

Definition at line 93 of file UnitMethods.h.

References WorldObject::IsWithinLOS(), and sEluna.

◆ Jump()

int LuaUnit::Jump ( lua_State * L,
Unit * unit )

Definition at line 526 of file UnitMethods.h.

References Unit::JumpTo().

◆ JumpTo()

int LuaUnit::JumpTo ( lua_State * L,
Unit * unit )

Definition at line 515 of file UnitMethods.h.

References Unit::JumpTo(), and sEluna.

◆ JumpToCoords()

int LuaUnit::JumpToCoords ( lua_State * L,
Unit * unit )

Definition at line 535 of file UnitMethods.h.

References Unit::GetMotionMaster(), and MotionMaster::MoveJump().

◆ Kill()

int LuaUnit::Kill ( lua_State * L,
Unit * unit )

Definition at line 1286 of file UnitMethods.h.

References Unit::Kill(), and sEluna.

◆ KnockbackFrom()

int LuaUnit::KnockbackFrom ( lua_State * L,
Unit * unit )

Definition at line 505 of file UnitMethods.h.

References Unit::KnockbackFrom().

◆ Mount()

int LuaUnit::Mount ( lua_State * L,
Unit * unit )

Definition at line 69 of file UnitMethods.h.

References Unit::Mount().

◆ MoveCharge()

int LuaUnit::MoveCharge ( lua_State * L,
Unit * unit )

Definition at line 546 of file UnitMethods.h.

References Unit::GetMotionMaster(), and MotionMaster::MoveCharge().

◆ MoveChase()

int LuaUnit::MoveChase ( lua_State * L,
Unit * unit )

Definition at line 556 of file UnitMethods.h.

References Unit::GetMotionMaster(), MotionMaster::MoveChase(), and sEluna.

◆ MoveClear()

int LuaUnit::MoveClear ( lua_State * L,
Unit * unit )

Definition at line 623 of file UnitMethods.h.

References MotionMaster::Clear(), and Unit::GetMotionMaster().

◆ MoveFollow()

int LuaUnit::MoveFollow ( lua_State * L,
Unit * unit )

Definition at line 614 of file UnitMethods.h.

References Unit::GetMotionMaster(), MotionMaster::MoveFollow(), and sEluna.

◆ MoveRandom()

int LuaUnit::MoveRandom ( lua_State * L,
Unit * unit )

Definition at line 629 of file UnitMethods.h.

References Unit::GetMotionMaster(), and MotionMaster::MoveRandom().

◆ MoveRotate()

int LuaUnit::MoveRotate ( lua_State * L,
Unit * unit )

◆ MoveTo()

int LuaUnit::MoveTo ( lua_State * L,
Unit * unit )

Definition at line 601 of file UnitMethods.h.

References Unit::GetMotionMaster(), and MotionMaster::MovePoint().

◆ PlayDirectSound()

int LuaUnit::PlayDirectSound ( lua_State * L,
Unit * unit )

Definition at line 1260 of file UnitMethods.h.

References WorldObject::PlayDirectSound(), sEluna, and sSoundEntriesStore.

◆ PlayDistanceSound()

int LuaUnit::PlayDistanceSound ( lua_State * L,
Unit * unit )

Definition at line 1274 of file UnitMethods.h.

References WorldObject::PlayDistanceSound(), sEluna, and sSoundEntriesStore.

◆ RegisterEvent()

int LuaUnit::RegisterEvent ( lua_State * L,
Unit * unit )

Definition at line 1294 of file UnitMethods.h.

References Unit::m_Events, and sEluna.

◆ RemoveAllAuras()

int LuaUnit::RemoveAllAuras ( lua_State * L,
Unit * unit )

Definition at line 1254 of file UnitMethods.h.

References Unit::RemoveAllAuras().

◆ RemoveAura()

int LuaUnit::RemoveAura ( lua_State * L,
Unit * unit )

Definition at line 1247 of file UnitMethods.h.

References Unit::RemoveAurasDueToSpell().

◆ RemoveBindSightAuras()

int LuaUnit::RemoveBindSightAuras ( lua_State * L,
Unit * unit )

Definition at line 1444 of file UnitMethods.h.

References Unit::RemoveBindSightAuras().

◆ RemoveCharmAuras()

int LuaUnit::RemoveCharmAuras ( lua_State * L,
Unit * unit )

Definition at line 1450 of file UnitMethods.h.

References Unit::RemoveCharmAuras().

◆ RemoveEventById()

int LuaUnit::RemoveEventById ( lua_State * L,
Unit * unit )

Definition at line 1306 of file UnitMethods.h.

References Unit::m_Events, and sEluna.

◆ RemoveEvents()

int LuaUnit::RemoveEvents ( lua_State * L,
Unit * unit )

Definition at line 1313 of file UnitMethods.h.

References Unit::m_Events, and sEluna.

◆ RestoreDisplayId()

int LuaUnit::RestoreDisplayId ( lua_State * L,
Unit * unit )

Definition at line 1432 of file UnitMethods.h.

References Unit::RestoreDisplayId().

◆ RestoreFaction()

int LuaUnit::RestoreFaction ( lua_State * L,
Unit * unit )

Definition at line 1438 of file UnitMethods.h.

References Unit::RestoreFaction().

◆ SendChatMessageToPlayer()

int LuaUnit::SendChatMessageToPlayer ( lua_State * L,
Unit * unit )

Definition at line 396 of file UnitMethods.h.

◆ SendUnitEmote()

int LuaUnit::SendUnitEmote ( lua_State * L,
Unit * unit )

Definition at line 1097 of file UnitMethods.h.

References ElunaGetWorldObject(), Player::TextEmote(), and Object::ToPlayer().

◆ SendUnitSay()

int LuaUnit::SendUnitSay ( lua_State * L,
Unit * unit )

Definition at line 1112 of file UnitMethods.h.

References ElunaGetWorldObject(), Player::Say(), and Object::ToPlayer().

◆ SendUnitWhisper()

int LuaUnit::SendUnitWhisper ( lua_State * L,
Unit * unit )

◆ SendUnitYell()

int LuaUnit::SendUnitYell ( lua_State * L,
Unit * unit )

Definition at line 1126 of file UnitMethods.h.

References ElunaGetWorldObject(), Object::ToPlayer(), and Player::Yell().

◆ SetCanFly()

int LuaUnit::SetCanFly ( lua_State * L,
Unit * unit )

Definition at line 1388 of file UnitMethods.h.

References Unit::SetCanFly().

◆ SetCharmerGUID()

int LuaUnit::SetCharmerGUID ( lua_State * L,
Unit * unit )

Definition at line 982 of file UnitMethods.h.

References sEluna, and Unit::SetCharmerGUID().

◆ SetConfused()

int LuaUnit::SetConfused ( lua_State * L,
Unit * unit )

Definition at line 587 of file UnitMethods.h.

References Unit::SetControlled(), and UNIT_STATE_CONFUSED.

◆ SetCreatorGUID()

int LuaUnit::SetCreatorGUID ( lua_State * L,
Unit * unit )

Definition at line 968 of file UnitMethods.h.

References sEluna, and Unit::SetCreatorGUID().

◆ SetCritterGUID()

int LuaUnit::SetCritterGUID ( lua_State * L,
Unit * unit )

Definition at line 996 of file UnitMethods.h.

References sEluna, and Unit::SetCritterGUID().

◆ SetDisplayId()

int LuaUnit::SetDisplayId ( lua_State * L,
Unit * unit )

Definition at line 947 of file UnitMethods.h.

References Unit::SetDisplayId().

◆ SetFacing()

int LuaUnit::SetFacing ( lua_State * L,
Unit * unit )

Definition at line 961 of file UnitMethods.h.

References Unit::SetFacingTo().

◆ SetFaction()

int LuaUnit::SetFaction ( lua_State * L,
Unit * unit )

Definition at line 859 of file UnitMethods.h.

References Unit::setFaction().

◆ SetFeared()

int LuaUnit::SetFeared ( lua_State * L,
Unit * unit )

Definition at line 594 of file UnitMethods.h.

References Unit::SetControlled(), and UNIT_STATE_FLEEING.

◆ SetFFA()

int LuaUnit::SetFFA ( lua_State * L,
Unit * unit )

◆ SetHealth()

int LuaUnit::SetHealth ( lua_State * L,
Unit * unit )

Definition at line 881 of file UnitMethods.h.

References Unit::SetHealth().

◆ SetLevel()

int LuaUnit::SetLevel ( lua_State * L,
Unit * unit )

Definition at line 866 of file UnitMethods.h.

References Unit::SetLevel().

◆ SetMaxHealth()

int LuaUnit::SetMaxHealth ( lua_State * L,
Unit * unit )

Definition at line 888 of file UnitMethods.h.

References Unit::SetMaxHealth().

◆ SetMaxPower()

int LuaUnit::SetMaxPower ( lua_State * L,
Unit * unit )

Definition at line 921 of file UnitMethods.h.

References POWER_ENERGY, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, and Unit::SetMaxPower().

◆ SetMinionGUID()

int LuaUnit::SetMinionGUID ( lua_State * L,
Unit * unit )

Definition at line 975 of file UnitMethods.h.

References sEluna, and Unit::SetPetGUID().

◆ SetName()

int LuaUnit::SetName ( lua_State * L,
Unit * unit )

Definition at line 565 of file UnitMethods.h.

References WorldObject::SetName().

◆ SetNativeDisplayId()

int LuaUnit::SetNativeDisplayId ( lua_State * L,
Unit * unit )

Definition at line 954 of file UnitMethods.h.

References Unit::SetNativeDisplayId().

◆ SetOwnerGUID()

int LuaUnit::SetOwnerGUID ( lua_State * L,
Unit * unit )

Definition at line 30 of file UnitMethods.h.

References sEluna, and Unit::SetOwnerGUID().

◆ SetPetGUID()

int LuaUnit::SetPetGUID ( lua_State * L,
Unit * unit )

Definition at line 989 of file UnitMethods.h.

References sEluna, and Unit::SetPetGUID().

◆ SetPhaseMask()

int LuaUnit::SetPhaseMask ( lua_State * L,
Unit * unit )

Definition at line 873 of file UnitMethods.h.

References Unit::SetPhaseMask().

◆ SetPower()

int LuaUnit::SetPower ( lua_State * L,
Unit * unit )

Definition at line 895 of file UnitMethods.h.

References POWER_ENERGY, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, and Unit::SetPower().

◆ SetPvP()

int LuaUnit::SetPvP ( lua_State * L,
Unit * unit )

Definition at line 227 of file UnitMethods.h.

References Unit::SetPvP().

◆ SetRooted()

int LuaUnit::SetRooted ( lua_State * L,
Unit * unit )

Definition at line 580 of file UnitMethods.h.

References Unit::SetControlled(), and UNIT_STATE_ROOT.

◆ SetSanctuary()

int LuaUnit::SetSanctuary ( lua_State * L,
Unit * unit )

◆ SetSheath()

int LuaUnit::SetSheath ( lua_State * L,
Unit * unit )

Definition at line 359 of file UnitMethods.h.

References MAX_SHEATH_STATE, and Unit::SetSheath().

◆ SetSpeed()

int LuaUnit::SetSpeed ( lua_State * L,
Unit * unit )

Definition at line 644 of file UnitMethods.h.

References MAX_MOVE_TYPE, and Unit::SetSpeed().

◆ SetStunned()

int LuaUnit::SetStunned ( lua_State * L,
Unit * unit )

Definition at line 573 of file UnitMethods.h.

References Unit::SetControlled(), and UNIT_STATE_STUNNED.

◆ SetVisible()

int LuaUnit::SetVisible ( lua_State * L,
Unit * unit )

Definition at line 1395 of file UnitMethods.h.

References Unit::SetVisible().

◆ SetWaterWalk()

int LuaUnit::SetWaterWalk ( lua_State * L,
Unit * unit )

Definition at line 1003 of file UnitMethods.h.

References Unit::SetWaterWalking().

◆ SpawnCreature()

◆ StopMoving()

int LuaUnit::StopMoving ( lua_State * L,
Unit * unit )

Definition at line 1456 of file UnitMethods.h.

References Unit::StopMoving().

◆ StopSpellCast()

int LuaUnit::StopSpellCast ( lua_State * L,
Unit * unit )

Definition at line 1205 of file UnitMethods.h.

References Unit::CastStop().

◆ SummonGameObject()

int LuaUnit::SummonGameObject ( lua_State * L,
Unit * unit )

Definition at line 436 of file UnitMethods.h.

References sEluna, and WorldObject::SummonGameObject().

◆ SummonGuardian()