Skip to content

Commit df6a554

Browse files
authored
Update ABPlayerScript.h (#203)
* Update ABPlayerScript.h * update ABPlayerScript.cpp
1 parent bcc6b27 commit df6a554

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/ABPlayerScript.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
#include "ABUtils.h"
1010
#include "Message.h"
1111

12-
void AutoBalance_PlayerScript::OnLogin(Player* Player)
12+
void AutoBalance_PlayerScript::OnPlayerLogin(Player* Player)
1313
{
1414
if (EnableGlobal && Announcement) {
1515
ChatHandler(Player->GetSession()).SendSysMessage("This server is running the |cff4CFF00AutoBalance |rmodule.");
1616
}
1717
}
1818

19-
void AutoBalance_PlayerScript::OnLevelChanged(Player* player, uint8 oldlevel)
19+
void AutoBalance_PlayerScript::OnPlayerLevelChanged(Player* player, uint8 oldlevel)
2020
{
2121
LOG_DEBUG("module.AutoBalance", "AutoBalance:: ------------------------------------------------");
2222

@@ -41,7 +41,7 @@ void AutoBalance_PlayerScript::OnLevelChanged(Player* player, uint8 oldlevel)
4141
mapABInfo->mapConfigTime = GetCurrentConfigTime();
4242
}
4343

44-
void AutoBalance_PlayerScript::OnGiveXP(Player* player, uint32& amount, Unit* victim, uint8 /*xpSource*/)
44+
void AutoBalance_PlayerScript::OnPlayerGiveXP(Player* player, uint32& amount, Unit* victim, uint8 /*xpSource*/)
4545
{
4646
Map* map = player->GetMap();
4747

@@ -80,7 +80,7 @@ void AutoBalance_PlayerScript::OnGiveXP(Player* player, uint32& amount, Unit* vi
8080
}
8181
}
8282

83-
void AutoBalance_PlayerScript::OnBeforeLootMoney(Player* player, Loot* loot)
83+
void AutoBalance_PlayerScript::OnPlayerBeforeLootMoney(Player* player, Loot* loot)
8484
{
8585
Map* map = player->GetMap();
8686

src/ABPlayerScript.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ class AutoBalance_PlayerScript : public PlayerScript
1717
{
1818
}
1919

20-
void OnLogin(Player* Player) override;
21-
virtual void OnLevelChanged(Player* player, uint8 oldlevel) override;
22-
void OnGiveXP(Player* player, uint32& amount, Unit* victim, uint8 xpSource) override;
23-
void OnBeforeLootMoney(Player* player, Loot* loot) override;
20+
void OnPlayerLogin(Player* Player) override;
21+
virtual void OnPlayerLevelChanged(Player* player, uint8 oldlevel) override;
22+
void OnPlayerGiveXP(Player* player, uint32& amount, Unit* victim, uint8 xpSource) override;
23+
void OnPlayerBeforeLootMoney(Player* player, Loot* loot) override;
2424
virtual void OnPlayerEnterCombat(Player* player, Unit* enemy) override;
2525
virtual void OnPlayerLeaveCombat(Player* player) override;
2626
};

0 commit comments

Comments
 (0)