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 },
|
{ "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 },
|
||||||
|
|||||||
@@ -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].
|
||||||
|
|||||||
@@ -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].
|
||||||
|
|||||||
Reference in New Issue
Block a user