Skip to content

Commit

Permalink
Cata updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Niam5 committed Aug 8, 2024
1 parent 41e2d05 commit e750046
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
3 changes: 2 additions & 1 deletion ElunaIncludes.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
#include "Spells/SpellAuras.h"
#include "Spells/SpellMgr.h"
#include "Tools/Language.h"
#include "AI/BaseAI/UnitAI.h"
#include "Server/SQLStorages.h"
#if ELUNA_EXPANSION > CLASSIC
#include "Arena/ArenaTeam.h"
Expand All @@ -103,6 +102,8 @@
#endif
#if ELUNA_EXPANSION >= CATA
#include "AI/BaseAI/AggressorAI.h"
#else
#include "AI/BaseAI/UnitAI.h"
#endif
#endif

Expand Down
20 changes: 13 additions & 7 deletions methods/CMangos/PlayerMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ namespace LuaPlayer
}
#endif

#if ELUNA_EXPANSION >= TBC
#if ELUNA_EXPANSION >= TBC && ELUNA_EXPANSION <= WOTLK
/**
* Returns the [Player]s current amount of Arena Points
*
Expand Down Expand Up @@ -1847,7 +1847,7 @@ namespace LuaPlayer
return 0;
}

#if ELUNA_EXPANSION >= TBC
#if ELUNA_EXPANSION >= TBC && ELUNA_EXPANSION <= WOTLK
/**
* Sets the [Player]s Arena Points to the amount specified
*
Expand Down Expand Up @@ -2033,7 +2033,7 @@ namespace LuaPlayer
return 0;
}

#if ELUNA_EXPANSION >= TBC
#if ELUNA_EXPANSION >= TBC && ELUNA_EXPANSION <= WOTLK
/**
* Adds or detracts from the [Player]s current Arena Points
*
Expand Down Expand Up @@ -3798,7 +3798,7 @@ namespace LuaPlayer
{ "GetCorpse", &LuaPlayer::GetCorpse },
{ "GetGossipTextId", &LuaPlayer::GetGossipTextId },
{ "GetQuestRewardStatus", &LuaPlayer::GetQuestRewardStatus },
#if ELUNA_EXPANSION >= TBC
#if ELUNA_EXPANSION >= TBC && ELUNA_EXPANSION <= WOTLK
{ "GetArenaPoints", &LuaPlayer::GetArenaPoints },
{ "GetHonorPoints", &LuaPlayer::GetHonorPoints },
#else
Expand Down Expand Up @@ -3850,11 +3850,14 @@ namespace LuaPlayer
#if ELUNA_EXPANSION >= TBC
{ "SetKnownTitle", &LuaPlayer::SetKnownTitle },
{ "UnsetKnownTitle", &LuaPlayer::UnsetKnownTitle },
{ "SetArenaPoints", &LuaPlayer::SetArenaPoints },
{ "SetHonorPoints", &LuaPlayer::SetHonorPoints },
#else
{ "SetKnownTitle", METHOD_REG_NONE },
{ "UnsetKnownTitle", METHOD_REG_NONE },
#endif
#if ELUNA_EXPANSION >= TBC && ELUNA_EXPANSION <= WOTLK
{ "SetArenaPoints", &LuaPlayer::SetArenaPoints },
{ "SetHonorPoints", &LuaPlayer::SetHonorPoints },
#else
{ "SetArenaPoints", METHOD_REG_NONE },
{ "SetHonorPoints", METHOD_REG_NONE },
#endif
Expand Down Expand Up @@ -4009,10 +4012,13 @@ namespace LuaPlayer
{ "SendCinematicStart", &LuaPlayer::SendCinematicStart },
#if ELUNA_EXPANSION >= TBC
{ "RemoveArenaSpellCooldowns", &LuaPlayer::RemoveArenaSpellCooldowns },
#else
{ "RemoveArenaSpellCooldowns", METHOD_REG_NONE },
#endif
#if ELUNA_EXPANSION >= TBC && ELUNA_EXPANSION <= WOTLK
{ "ModifyHonorPoints", &LuaPlayer::ModifyHonorPoints },
{ "ModifyArenaPoints", &LuaPlayer::ModifyArenaPoints },
#else
{ "RemoveArenaSpellCooldowns", METHOD_REG_NONE },
{ "ModifyHonorPoints", METHOD_REG_NONE },
{ "ModifyArenaPoints", METHOD_REG_NONE },
#endif
Expand Down

0 comments on commit e750046

Please sign in to comment.