From f6a48236ae6cc168e4046d93ec76f3d104ecb8b1 Mon Sep 17 00:00:00 2001 From: Axel Cocat Date: Sun, 25 Jul 2021 11:16:40 +0200 Subject: [PATCH] remove arena cooldowns and auras methods for mangos zero --- LuaFunctions.cpp | 4 ++++ PlayerMethods.h | 2 ++ UnitMethods.h | 2 ++ 3 files changed, 8 insertions(+) diff --git a/LuaFunctions.cpp b/LuaFunctions.cpp index 6960189..fa89d37 100644 --- a/LuaFunctions.cpp +++ b/LuaFunctions.cpp @@ -389,7 +389,9 @@ ElunaRegister UnitMethods[] = { "AddAura", &LuaUnit::AddAura }, { "RemoveAura", &LuaUnit::RemoveAura }, { "RemoveAllAuras", &LuaUnit::RemoveAllAuras }, +#if !defined(CLASSIC) { "RemoveArenaAuras", &LuaUnit::RemoveArenaAuras }, +#endif { "ClearInCombat", &LuaUnit::ClearInCombat }, { "DeMorph", &LuaUnit::DeMorph }, { "SendUnitWhisper", &LuaUnit::SendUnitWhisper }, @@ -664,7 +666,9 @@ ElunaRegister PlayerMethods[] = { "ModifyMoney", &LuaPlayer::ModifyMoney }, { "LearnSpell", &LuaPlayer::LearnSpell }, { "LearnTalent", &LuaPlayer::LearnTalent }, +#if !defined(CLASSIC) { "RemoveArenaSpellCooldowns", &LuaPlayer::RemoveArenaSpellCooldowns }, +#endif { "RemoveItem", &LuaPlayer::RemoveItem }, { "RemoveLifetimeKills", &LuaPlayer::RemoveLifetimeKills }, { "ResurrectPlayer", &LuaPlayer::ResurrectPlayer }, diff --git a/PlayerMethods.h b/PlayerMethods.h index 3fb76d2..2797c93 100644 --- a/PlayerMethods.h +++ b/PlayerMethods.h @@ -3733,6 +3733,7 @@ namespace LuaPlayer return 0; } +#if !defined(CLASSIC) /** * Remove cooldowns on spells that have less than 10 minutes of cooldown from the [Player], similarly to when you enter an arena. */ @@ -3741,6 +3742,7 @@ namespace LuaPlayer player->RemoveArenaSpellCooldowns(); return 0; } +#endif /** * Resurrects the [Player]. diff --git a/UnitMethods.h b/UnitMethods.h index 0946b7a..92ca3b9 100644 --- a/UnitMethods.h +++ b/UnitMethods.h @@ -2657,6 +2657,7 @@ namespace LuaUnit return 0; } +#if !defined(CLASSIC) /** * Removes all positive visible [Aura]'s from the [Unit]. */ @@ -2665,6 +2666,7 @@ namespace LuaUnit unit->RemoveArenaAuras(); return 0; } +#endif /** * Adds the given unit state for the [Unit].