mirror of
https://github.com/ornfelt/azerothcore_lua_scripts
synced 2026-08-22 06:26:03 -04:00
21 lines
No EOL
457 B
C++
21 lines
No EOL
457 B
C++
#include "ScriptPCH.h"
|
|
|
|
class OnEnterMap: public PlayerScript
|
|
{
|
|
public:
|
|
OnEnterMap() : PlayerScript("OnEnterMap") {}
|
|
|
|
void OnPlayerEnterMap(Map* map, Player* player)
|
|
{
|
|
if (player->GetMapId() == 532 && (player->GetCommandStatus(CHEAT_COOLDOWN) || player->GetCommandStatus(CHEAT_CASTTIME)))
|
|
{
|
|
player->m_CheatCastTime = false;
|
|
player->m_CheatCooldown = false;
|
|
}
|
|
}
|
|
};
|
|
|
|
void AddSC_OnEnterMap()
|
|
{
|
|
new OnEnterMap();
|
|
} |