mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
remove arena cooldowns and auras methods for mangos zero
This commit is contained in:
@@ -389,7 +389,9 @@ ElunaRegister<Unit> 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<Player> 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 },
|
||||
|
||||
@@ -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].
|
||||
|
||||
@@ -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].
|
||||
|
||||
Reference in New Issue
Block a user