mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fix clang warnings about variable usage
This commit is contained in:
@@ -3432,25 +3432,6 @@ namespace LuaPlayer
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears a cooldown of the specified spell
|
||||
*
|
||||
* @param uint32 spellId : entry of a spell
|
||||
* @param [Unit] target
|
||||
*/
|
||||
int SendClearCooldowns(lua_State* L, Player* player)
|
||||
{
|
||||
uint32 spellId = Eluna::CHECKVAL<uint32>(L, 2);
|
||||
Unit* target = Eluna::CHECKOBJ<Unit>(L, 3);
|
||||
|
||||
#ifdef TRINITY
|
||||
target->GetSpellHistory()->ResetCooldown(spellId, true);
|
||||
#else
|
||||
player->SendClearCooldown(spellId, target);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a Broadcast Message to the [Player]
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user