mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 06:36:24 +00:00
Merge branch 'azerothcore:master' into Playerbot
This commit is contained in:
@@ -146,6 +146,14 @@ void ScriptMgr::OnPlayerMoneyChanged(Player* player, int32& amount)
|
||||
});
|
||||
}
|
||||
|
||||
void ScriptMgr::OnBeforeLootMoney(Player* player, Loot* loot)
|
||||
{
|
||||
ExecuteScript<PlayerScript>([&](PlayerScript* script)
|
||||
{
|
||||
script->OnBeforeLootMoney(player, loot);
|
||||
});
|
||||
}
|
||||
|
||||
void ScriptMgr::OnGivePlayerXP(Player* player, uint32& amount, Unit* victim)
|
||||
{
|
||||
ExecuteScript<PlayerScript>([&](PlayerScript* script)
|
||||
@@ -1263,6 +1271,7 @@ void ScriptMgr::OnGetArenaTeamId(Player* player, uint8 slot, uint32& result)
|
||||
});
|
||||
}
|
||||
|
||||
//Signifies that IsFfaPvp has been called.
|
||||
void ScriptMgr::OnIsFFAPvP(Player* player, bool& result)
|
||||
{
|
||||
ExecuteScript<PlayerScript>([&](PlayerScript* script)
|
||||
@@ -1270,6 +1279,14 @@ void ScriptMgr::OnIsFFAPvP(Player* player, bool& result)
|
||||
script->OnIsFFAPvP(player, result);
|
||||
});
|
||||
}
|
||||
//Fires whenever the UNIT_BYTE2_FLAG_FFA_PVP bit is Changed
|
||||
void ScriptMgr::OnFfaPvpStateUpdate(Player* player, bool result)
|
||||
{
|
||||
ExecuteScript<PlayerScript>([&](PlayerScript* script)
|
||||
{
|
||||
script->OnFfaPvpStateUpdate(player, result);
|
||||
});
|
||||
}
|
||||
|
||||
void ScriptMgr::OnIsPvP(Player* player, bool& result)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user