mirror of
https://github.com/BytesGalore/mod-no-hearthstone-cooldown.git
synced 2026-01-12 16:48:39 +00:00
Adding fixes to support AzerothCore Core/PlayerScript changes (#21020)
This commit is contained in:
@@ -13,13 +13,13 @@ class NoHearthstoneCooldown : public PlayerScript, public WorldScript
|
||||
public:
|
||||
NoHearthstoneCooldown(): PlayerScript("NoHearthstoneCooldown"), WorldScript("NoHearthstoneCooldown") {}
|
||||
|
||||
bool OnBeforeTeleport(Player* player, uint32 /*mapid*/, float /*x*/, float /*y*/, float /*z*/, float /*orientation*/, uint32 /*options*/, Unit* /*target*/) override
|
||||
bool OnPlayerBeforeTeleport(Player* player, uint32 /*mapid*/, float /*x*/, float /*y*/, float /*z*/, float /*orientation*/, uint32 /*options*/, Unit* /*target*/) override
|
||||
{
|
||||
ClearHearthstoneCooldown(player);
|
||||
return true;
|
||||
}
|
||||
|
||||
void OnLogin(Player* player) override
|
||||
void OnPlayerLogin(Player* player) override
|
||||
{
|
||||
if (sConfigMgr->GetOption<bool>("NoHearthstoneCooldown.Announce", true))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user