mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 10:00:28 +00:00
feat(Hooks/PlayerScript): ShouldBeRewardedWithMoneyInsteadOfExp (#4445)
This commit is contained in:
@@ -1714,6 +1714,17 @@ bool ScriptMgr::CanJoinInBattlegroundQueue(Player* player, uint64 BattlemasterGu
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool ScriptMgr::ShouldBeRewardedWithMoneyInsteadOfExp(Player* player)
|
||||
{
|
||||
bool ret = false; // return false by default if not scripts
|
||||
|
||||
FOR_SCRIPTS_RET(PlayerScript, itr, end, ret)
|
||||
if (itr->second->ShouldBeRewardedWithMoneyInsteadOfExp(player))
|
||||
ret = true; // we change ret value only when a script returns true
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
void ScriptMgr::OnBeforeTempSummonInitStats(Player* player, TempSummon* tempSummon, uint32& duration)
|
||||
{
|
||||
FOREACH_SCRIPT(PlayerScript)->OnBeforeTempSummonInitStats(player, tempSummon, duration);
|
||||
|
||||
Reference in New Issue
Block a user