Merge branch 'azerothcore:master' into Playerbot

This commit is contained in:
ZhengPeiRu21
2023-04-18 09:28:55 -06:00
committed by GitHub
21 changed files with 434 additions and 220 deletions

View File

@@ -614,6 +614,21 @@ void ScriptMgr::OnQuestRewardItem(Player* player, Item* item, uint32 count)
});
}
bool ScriptMgr::CanPlaceAuctionBid(Player* player, AuctionEntry* auction)
{
auto ret = IsValidBoolScript<PlayerScript>([&](PlayerScript *script)
{
return !script->CanPlaceAuctionBid(player, auction);
});
if (ret && *ret)
{
return false;
}
return true;
}
void ScriptMgr::OnGroupRollRewardItem(Player* player, Item* item, uint32 count, RollVote voteType, Roll* roll)
{
ExecuteScript<PlayerScript>([&](PlayerScript* script)