Skip to content

Commit

Permalink
Fix functions that are available in Cata that were not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Niam5 committed Sep 2, 2024
1 parent 11d04a4 commit 89891d4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
7 changes: 5 additions & 2 deletions methods/CMangos/ItemMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -845,12 +845,15 @@ namespace LuaItem
#else
{ "IsCurrencyToken", METHOD_REG_NONE },
#endif
#if ELUNA_EXPANSION == EXP_WOTLK
#if ELUNA_EXPANSION >= EXP_WOTLK
{ "IsBoundAccountWide", &LuaItem::IsBoundAccountWide },
#else
{ "IsBoundAccountWide", METHOD_REG_NONE },
#endif
#if ELUNA_EXPANSION == EXP_WOTLK
{ "IsWeaponVellum", &LuaItem::IsWeaponVellum },
{ "IsArmorVellum", &LuaItem::IsArmorVellum },
#else
{ "IsBoundAccountWide", METHOD_REG_NONE },
{ "IsWeaponVellum", METHOD_REG_NONE },
{ "IsArmorVellum", METHOD_REG_NONE },
#endif
Expand Down
8 changes: 4 additions & 4 deletions methods/CMangos/PlayerMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ namespace LuaPlayer
}
#endif

#if ELUNA_EXPANSION == EXP_WOTLK
#if ELUNA_EXPANSION >= EXP_WOTLK
/**
* Returns the normal phase of the player instead of the actual phase possibly containing GM phase
*
Expand Down Expand Up @@ -3802,7 +3802,7 @@ namespace LuaPlayer
{ "GetArenaPoints", METHOD_REG_NONE },
{ "GetHonorPoints", METHOD_REG_NONE },
#endif
#if ELUNA_EXPANSION == EXP_WOTLK
#if ELUNA_EXPANSION >= EXP_WOTLK
{ "GetPhaseMaskForSpawn", &LuaPlayer::GetPhaseMaskForSpawn },
{ "GetActiveSpec", &LuaPlayer::GetActiveSpec },
{ "GetSpecsCount", &LuaPlayer::GetSpecsCount },
Expand Down Expand Up @@ -3916,7 +3916,7 @@ namespace LuaPlayer
{ "CanFly", METHOD_REG_NONE },
{ "IsFlying", METHOD_REG_NONE },
#endif
#if ELUNA_EXPANSION == EXP_WOTLK
#if ELUNA_EXPANSION >= EXP_WOTLK
{ "HasAchieved", &LuaPlayer::HasAchieved },
{ "HasTalent", &LuaPlayer::HasTalent },
{ "CanTitanGrip", &LuaPlayer::CanTitanGrip },
Expand Down Expand Up @@ -4019,7 +4019,7 @@ namespace LuaPlayer
{ "ModifyHonorPoints", METHOD_REG_NONE },
{ "ModifyArenaPoints", METHOD_REG_NONE },
#endif
#if ELUNA_EXPANSION == EXP_WOTLK
#if ELUNA_EXPANSION >= EXP_WOTLK
{ "ResetPetTalents", &LuaPlayer::ResetPetTalents },
{ "ResetAchievements", &LuaPlayer::ResetAchievements },
{ "SendMovieStart", &LuaPlayer::SendMovieStart },
Expand Down
8 changes: 5 additions & 3 deletions methods/CMangos/UnitMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -2641,7 +2641,11 @@ namespace LuaUnit
#if ELUNA_EXPANSION >= EXP_TBC
{ "IsOnVehicle", &LuaUnit::IsOnVehicle },
{ "RemoveArenaAuras", &LuaUnit::RemoveArenaAuras },
#elif ELUNA_EXPANSION >= EXP_WOTLK
#else
{ "IsOnVehicle", METHOD_REG_NONE },
{ "RemoveArenaAuras", METHOD_REG_NONE },
#endif
#if ELUNA_EXPANSION >= EXP_WOTLK
{ "GetCritterGUID", &LuaUnit::GetCritterGUID },
{ "GetVehicleKit", &LuaUnit::GetVehicleKit },
{ "SetFFA", &LuaUnit::SetFFA },
Expand All @@ -2654,8 +2658,6 @@ namespace LuaUnit
{ "SetFFA", METHOD_REG_NONE },
{ "SetSanctuary", METHOD_REG_NONE },
{ "SetCritterGUID", METHOD_REG_NONE },
{ "IsOnVehicle", METHOD_REG_NONE },
{ "RemoveArenaAuras", METHOD_REG_NONE },
{ "MoveJump", METHOD_REG_NONE },
#endif

Expand Down
2 changes: 1 addition & 1 deletion methods/CMangos/WorldObjectMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ namespace LuaWorldObject
{ "GetExactDistance2d", &LuaWorldObject::GetExactDistance2d },
{ "GetRelativePoint", &LuaWorldObject::GetRelativePoint },
{ "GetAngle", &LuaWorldObject::GetAngle },
#if ELUNA_EXPANSION == EXP_WOTLK
#if ELUNA_EXPANSION > EXP_TBC
{ "GetPhaseMask", &LuaWorldObject::GetPhaseMask },
{ "SetPhaseMask", &LuaWorldObject::SetPhaseMask },
#else
Expand Down

0 comments on commit 89891d4

Please sign in to comment.