Skip to content

Commit

Permalink
fix: add GetSpeedRate and SetSpeedRate, remove ifdefs (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenbledt authored Oct 14, 2023
1 parent 7c6e6db commit a3997ac
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 564 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ Eluna API for AC:
- Added `Unit:GetUnitFlagsTwo()`: https://github.com/azerothcore/mod-eluna/pull/137
- Added `Unit:SetUnitFlags(flags)`: https://github.com/azerothcore/mod-eluna/pull/137
- Added `Unit:SetUnitFlagsTwo(flags)`: https://github.com/azerothcore/mod-eluna/pull/137
- Added `Unit:SetSpeedRate(unitMoveType, speed)`: https://github.com/azerothcore/mod-eluna/pull/155
- Added `Unit:SetSpeedRate()`: https://github.com/azerothcore/mod-eluna/pull/155

### GameObject
- Added `GameObject:AddLoot()` to add loot at runtime to an **empty** container: https://github.com/azerothcore/mod-eluna/pull/52
Expand Down
2 changes: 2 additions & 0 deletions src/LuaEngine/LuaFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ ElunaRegister<Unit> UnitMethods[] =
{ "GetStandState", &LuaUnit::GetStandState },
{ "GetVictim", &LuaUnit::GetVictim },
{ "GetSpeed", &LuaUnit::GetSpeed },
{ "GetSpeedRate", &LuaUnit::GetSpeedRate },
{ "GetStat", &LuaUnit::GetStat },
{ "GetBaseSpellPower", &LuaUnit::GetBaseSpellPower },
#if (!defined(TBC) && !defined(CLASSIC))
Expand All @@ -327,6 +328,7 @@ ElunaRegister<Unit> UnitMethods[] =
{ "SetFacing", &LuaUnit::SetFacing },
{ "SetFacingToObject", &LuaUnit::SetFacingToObject },
{ "SetSpeed", &LuaUnit::SetSpeed },
{ "SetSpeedRate", &LuaUnit::SetSpeedRate },
// {"SetStunned", &LuaUnit::SetStunned}, // :SetStunned([enable]) - UNDOCUMENTED - Stuns or removes stun
{"SetRooted", &LuaUnit::SetRooted},
{"SetConfused", &LuaUnit::SetConfused},
Expand Down
Loading

0 comments on commit a3997ac

Please sign in to comment.