eluna-scripts-ornfelt/lua/WowEmulationScriptPack/C++/OnEnterMap.cpp
2024-09-23 07:59:23 +02:00

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();
}