fix: add GetSpeedRate and SetSpeedRate, remove ifdefs (#155)
This commit is contained in:
@@ -114,6 +114,8 @@ Eluna API for AC:
|
|||||||
- Added `Unit:GetUnitFlagsTwo()`: https://github.com/azerothcore/mod-eluna/pull/137
|
- 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:SetUnitFlags(flags)`: https://github.com/azerothcore/mod-eluna/pull/137
|
||||||
- Added `Unit:SetUnitFlagsTwo(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
|
### GameObject
|
||||||
- Added `GameObject:AddLoot()` to add loot at runtime to an **empty** container: https://github.com/azerothcore/mod-eluna/pull/52
|
- Added `GameObject:AddLoot()` to add loot at runtime to an **empty** container: https://github.com/azerothcore/mod-eluna/pull/52
|
||||||
|
|||||||
@@ -305,6 +305,7 @@ ElunaRegister<Unit> UnitMethods[] =
|
|||||||
{ "GetStandState", &LuaUnit::GetStandState },
|
{ "GetStandState", &LuaUnit::GetStandState },
|
||||||
{ "GetVictim", &LuaUnit::GetVictim },
|
{ "GetVictim", &LuaUnit::GetVictim },
|
||||||
{ "GetSpeed", &LuaUnit::GetSpeed },
|
{ "GetSpeed", &LuaUnit::GetSpeed },
|
||||||
|
{ "GetSpeedRate", &LuaUnit::GetSpeedRate },
|
||||||
{ "GetStat", &LuaUnit::GetStat },
|
{ "GetStat", &LuaUnit::GetStat },
|
||||||
{ "GetBaseSpellPower", &LuaUnit::GetBaseSpellPower },
|
{ "GetBaseSpellPower", &LuaUnit::GetBaseSpellPower },
|
||||||
#if (!defined(TBC) && !defined(CLASSIC))
|
#if (!defined(TBC) && !defined(CLASSIC))
|
||||||
@@ -327,6 +328,7 @@ ElunaRegister<Unit> UnitMethods[] =
|
|||||||
{ "SetFacing", &LuaUnit::SetFacing },
|
{ "SetFacing", &LuaUnit::SetFacing },
|
||||||
{ "SetFacingToObject", &LuaUnit::SetFacingToObject },
|
{ "SetFacingToObject", &LuaUnit::SetFacingToObject },
|
||||||
{ "SetSpeed", &LuaUnit::SetSpeed },
|
{ "SetSpeed", &LuaUnit::SetSpeed },
|
||||||
|
{ "SetSpeedRate", &LuaUnit::SetSpeedRate },
|
||||||
// {"SetStunned", &LuaUnit::SetStunned}, // :SetStunned([enable]) - UNDOCUMENTED - Stuns or removes stun
|
// {"SetStunned", &LuaUnit::SetStunned}, // :SetStunned([enable]) - UNDOCUMENTED - Stuns or removes stun
|
||||||
{"SetRooted", &LuaUnit::SetRooted},
|
{"SetRooted", &LuaUnit::SetRooted},
|
||||||
{"SetConfused", &LuaUnit::SetConfused},
|
{"SetConfused", &LuaUnit::SetConfused},
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user