feat(Core/Hooks): Add the KillRewarder reference to the OnRewardKillRewarder hook. (#18290)

* Another hackfix attempt at warden payload forcechecks ban fix.

* Revert last commit, interrupt all forcechecks instead of just _dataSent ones.

* Add rewarder parameter to OnRewardKillRewarder hook.

* Undo old warden changes.

* Removed too much!
This commit is contained in:
AnchyDev
2024-02-11 07:58:49 +11:00
committed by GitHub
parent 6b1dd7e19e
commit 1d8c4056b3
5 changed files with 19 additions and 5 deletions

View File

@@ -992,11 +992,11 @@ void ScriptMgr::PetitionShowList(Player* player, Creature* creature, uint32& Cha
});
}
void ScriptMgr::OnRewardKillRewarder(Player* player, bool isDungeon, float& rate)
void ScriptMgr::OnRewardKillRewarder(Player* player, KillRewarder* rewarder, bool isDungeon, float& rate)
{
ExecuteScript<PlayerScript>([&](PlayerScript* script)
{
script->OnRewardKillRewarder(player, isDungeon, rate);
script->OnRewardKillRewarder(player, rewarder, isDungeon, rate);
});
}