mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Eluna fix TC
This commit is contained in:
@@ -251,8 +251,8 @@ ElunaRegister<Unit> UnitMethods[] =
|
|||||||
{ "SetPowerType", &LuaUnit::SetPowerType }, // :SetPowerType(type)
|
{ "SetPowerType", &LuaUnit::SetPowerType }, // :SetPowerType(type)
|
||||||
{ "SetDisplayId", &LuaUnit::SetDisplayId }, // :SetDisplayId(id)
|
{ "SetDisplayId", &LuaUnit::SetDisplayId }, // :SetDisplayId(id)
|
||||||
{ "SetNativeDisplayId", &LuaUnit::SetNativeDisplayId }, // :SetNativeDisplayId(id)
|
{ "SetNativeDisplayId", &LuaUnit::SetNativeDisplayId }, // :SetNativeDisplayId(id)
|
||||||
{ "SetFacing", &LuaUnit::SetFacing }, // :SetFacing(o) - Sets the Unit facing to arg
|
{ "SetFacing", &LuaUnit::SetFacing }, // :SetFacing(o) - Sets the Unit facing / orientation to arg
|
||||||
{ "SetFacingToObject", &LuaUnit::SetFacingToObject }, // :SetFacingToObject(worldObject) - Sets the Unit facing towards the WorldObject
|
{ "SetFacingToObject", &LuaUnit::SetFacingToObject }, // :SetFacingToObject(worldObject) - Sets the Unit facing / orientation towards the WorldObject
|
||||||
#if (!defined(TBC) && !defined(CLASSIC))
|
#if (!defined(TBC) && !defined(CLASSIC))
|
||||||
{ "SetPhaseMask", &LuaUnit::SetPhaseMask }, // :SetPhaseMask(Phase[, update]) - Sets the phase of the unit
|
{ "SetPhaseMask", &LuaUnit::SetPhaseMask }, // :SetPhaseMask(Phase[, update]) - Sets the phase of the unit
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1622,12 +1622,8 @@ namespace LuaPlayer
|
|||||||
|
|
||||||
int ResetTalentsCost(lua_State* L, Player* player)
|
int ResetTalentsCost(lua_State* L, Player* player)
|
||||||
{
|
{
|
||||||
#ifdef TRINITY
|
|
||||||
#ifdef CATA
|
#ifdef CATA
|
||||||
Eluna::Push(L, player->GetNextResetTalentsCost());
|
Eluna::Push(L, player->GetNextResetTalentsCost());
|
||||||
#else
|
|
||||||
Eluna::Push(L, player->ResetTalentsCost());
|
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
Eluna::Push(L, player->resetTalentsCost());
|
Eluna::Push(L, player->resetTalentsCost());
|
||||||
#endif
|
#endif
|
||||||
@@ -1638,7 +1634,7 @@ namespace LuaPlayer
|
|||||||
{
|
{
|
||||||
bool no_cost = Eluna::CHECKVAL<bool>(L, 2, true);
|
bool no_cost = Eluna::CHECKVAL<bool>(L, 2, true);
|
||||||
|
|
||||||
#ifdef TRINITY
|
#ifdef CATA
|
||||||
player->ResetTalents(no_cost);
|
player->ResetTalents(no_cost);
|
||||||
#else
|
#else
|
||||||
player->resetTalents(no_cost);
|
player->resetTalents(no_cost);
|
||||||
@@ -1655,11 +1651,7 @@ namespace LuaPlayer
|
|||||||
bool disabled = Eluna::CHECKVAL<bool>(L, 3, false);
|
bool disabled = Eluna::CHECKVAL<bool>(L, 3, false);
|
||||||
bool learn_low_rank = Eluna::CHECKVAL<bool>(L, 4, true);
|
bool learn_low_rank = Eluna::CHECKVAL<bool>(L, 4, true);
|
||||||
|
|
||||||
#ifdef TRINITY
|
|
||||||
player->RemoveSpell(entry, disabled, learn_low_rank);
|
|
||||||
#else
|
|
||||||
player->removeSpell(entry, disabled, learn_low_rank);
|
player->removeSpell(entry, disabled, learn_low_rank);
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2101,11 +2093,8 @@ namespace LuaPlayer
|
|||||||
int LearnSpell(lua_State* L, Player* player)
|
int LearnSpell(lua_State* L, Player* player)
|
||||||
{
|
{
|
||||||
uint32 id = Eluna::CHECKVAL<uint32>(L, 2);
|
uint32 id = Eluna::CHECKVAL<uint32>(L, 2);
|
||||||
#ifdef TRINITY
|
|
||||||
player->LearnSpell(id, false);
|
|
||||||
#else
|
|
||||||
player->learnSpell(id, false);
|
player->learnSpell(id, false);
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user