mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
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: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
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user