mirror of
https://github.com/BytesGalore/mod-no-hearthstone-cooldown.git
synced 2026-01-13 00:58:37 +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:
|
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))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user