Adding fixes to support AzerothCore Core/PlayerScript changes (#21020)

This commit is contained in:
midas392
2025-02-25 11:38:52 -07:00
committed by BytesGalore
parent 051e424579
commit 832ef5e6d7

View File

@@ -13,13 +13,13 @@ class NoHearthstoneCooldown : public PlayerScript, public WorldScript
public: public:
NoHearthstoneCooldown(): PlayerScript("NoHearthstoneCooldown"), WorldScript("NoHearthstoneCooldown") {} 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); ClearHearthstoneCooldown(player);
return true; return true;
} }
void OnLogin(Player* player) override void OnPlayerLogin(Player* player) override
{ {
if (sConfigMgr->GetOption<bool>("NoHearthstoneCooldown.Announce", true)) if (sConfigMgr->GetOption<bool>("NoHearthstoneCooldown.Announce", true))
{ {