fix: add GetSpeedRate and SetSpeedRate, remove ifdefs (#155)

This commit is contained in:
Sven Bledt
2023-10-14 17:47:34 +02:00
committed by GitHub
parent 7c6e6dbbd0
commit a3997ac988
3 changed files with 85 additions and 564 deletions

View File

@@ -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

View File

@@ -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))
@@ -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},

File diff suppressed because it is too large Load Diff