mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Merge pull request #1 from r-o-b-o-t-o/feat/arena-methods
feat: expose RemoveArenaSpellCooldowns and RemoveArenaAuras
This commit is contained in:
@@ -389,6 +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 },
|
||||||
|
#endif
|
||||||
{ "ClearInCombat", &LuaUnit::ClearInCombat },
|
{ "ClearInCombat", &LuaUnit::ClearInCombat },
|
||||||
{ "DeMorph", &LuaUnit::DeMorph },
|
{ "DeMorph", &LuaUnit::DeMorph },
|
||||||
{ "SendUnitWhisper", &LuaUnit::SendUnitWhisper },
|
{ "SendUnitWhisper", &LuaUnit::SendUnitWhisper },
|
||||||
@@ -663,6 +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 },
|
||||||
|
#endif
|
||||||
{ "RemoveItem", &LuaPlayer::RemoveItem },
|
{ "RemoveItem", &LuaPlayer::RemoveItem },
|
||||||
{ "RemoveLifetimeKills", &LuaPlayer::RemoveLifetimeKills },
|
{ "RemoveLifetimeKills", &LuaPlayer::RemoveLifetimeKills },
|
||||||
{ "ResurrectPlayer", &LuaPlayer::ResurrectPlayer },
|
{ "ResurrectPlayer", &LuaPlayer::ResurrectPlayer },
|
||||||
|
|||||||
@@ -3728,6 +3728,17 @@ 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.
|
||||||
|
*/
|
||||||
|
int RemoveArenaSpellCooldowns(lua_State* /*L*/, Player* player)
|
||||||
|
{
|
||||||
|
player->RemoveArenaSpellCooldowns();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resurrects the [Player].
|
* Resurrects the [Player].
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -2657,6 +2657,17 @@ namespace LuaUnit
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(CLASSIC)
|
||||||
|
/**
|
||||||
|
* Removes all positive visible [Aura]'s from the [Unit].
|
||||||
|
*/
|
||||||
|
int RemoveArenaAuras(lua_State* /*L*/, Unit* unit)
|
||||||
|
{
|
||||||
|
unit->RemoveArenaAuras();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds the given unit state for the [Unit].
|
* Adds the given unit state for the [Unit].
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user