remove arena cooldowns and auras methods for mangos zero

This commit is contained in:
Axel Cocat
2021-07-25 11:16:40 +02:00
parent 31b9b46ec6
commit f6a48236ae
3 changed files with 8 additions and 0 deletions

View File

@@ -389,7 +389,9 @@ ElunaRegister<Unit> UnitMethods[] =
{ "AddAura", &LuaUnit::AddAura }, { "AddAura", &LuaUnit::AddAura },
{ "RemoveAura", &LuaUnit::RemoveAura }, { "RemoveAura", &LuaUnit::RemoveAura },
{ "RemoveAllAuras", &LuaUnit::RemoveAllAuras }, { "RemoveAllAuras", &LuaUnit::RemoveAllAuras },
#if !defined(CLASSIC)
{ "RemoveArenaAuras", &LuaUnit::RemoveArenaAuras }, { "RemoveArenaAuras", &LuaUnit::RemoveArenaAuras },
#endif
{ "ClearInCombat", &LuaUnit::ClearInCombat }, { "ClearInCombat", &LuaUnit::ClearInCombat },
{ "DeMorph", &LuaUnit::DeMorph }, { "DeMorph", &LuaUnit::DeMorph },
{ "SendUnitWhisper", &LuaUnit::SendUnitWhisper }, { "SendUnitWhisper", &LuaUnit::SendUnitWhisper },
@@ -664,7 +666,9 @@ ElunaRegister<Player> PlayerMethods[] =
{ "ModifyMoney", &LuaPlayer::ModifyMoney }, { "ModifyMoney", &LuaPlayer::ModifyMoney },
{ "LearnSpell", &LuaPlayer::LearnSpell }, { "LearnSpell", &LuaPlayer::LearnSpell },
{ "LearnTalent", &LuaPlayer::LearnTalent }, { "LearnTalent", &LuaPlayer::LearnTalent },
#if !defined(CLASSIC)
{ "RemoveArenaSpellCooldowns", &LuaPlayer::RemoveArenaSpellCooldowns }, { "RemoveArenaSpellCooldowns", &LuaPlayer::RemoveArenaSpellCooldowns },
#endif
{ "RemoveItem", &LuaPlayer::RemoveItem }, { "RemoveItem", &LuaPlayer::RemoveItem },
{ "RemoveLifetimeKills", &LuaPlayer::RemoveLifetimeKills }, { "RemoveLifetimeKills", &LuaPlayer::RemoveLifetimeKills },
{ "ResurrectPlayer", &LuaPlayer::ResurrectPlayer }, { "ResurrectPlayer", &LuaPlayer::ResurrectPlayer },

View File

@@ -3733,6 +3733,7 @@ namespace LuaPlayer
return 0; 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. * 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(); player->RemoveArenaSpellCooldowns();
return 0; return 0;
} }
#endif
/** /**
* Resurrects the [Player]. * Resurrects the [Player].

View File

@@ -2657,6 +2657,7 @@ namespace LuaUnit
return 0; return 0;
} }
#if !defined(CLASSIC)
/** /**
* Removes all positive visible [Aura]'s from the [Unit]. * Removes all positive visible [Aura]'s from the [Unit].
*/ */
@@ -2665,6 +2666,7 @@ namespace LuaUnit
unit->RemoveArenaAuras(); unit->RemoveArenaAuras();
return 0; return 0;
} }
#endif
/** /**
* Adds the given unit state for the [Unit]. * Adds the given unit state for the [Unit].