fix(Core): Correct Post 3.1 Fishing Skill Leveling (#12996)

This commit is contained in:
ZhengPeiRu21
2022-09-18 19:09:47 -06:00
committed by GitHub
parent c0ac3431ff
commit 25f88caa42
3 changed files with 22 additions and 2 deletions

View File

@@ -928,6 +928,21 @@ void ScriptMgr::OnGetMaxSkillValue(Player* player, uint32 skill, int32& result,
});
}
bool ScriptMgr::OnUpdateFishingSkill(Player* player, int32 skill, int32 zone_skill, int32 chance, int32 roll)
{
auto ret = IsValidBoolScript<PlayerScript>([&](PlayerScript* script)
{
return !script->OnUpdateFishingSkill(player, skill, zone_skill, chance, roll);
});
if (ret && *ret)
{
return false;
}
return true;
}
bool ScriptMgr::CanAreaExploreAndOutdoor(Player* player)
{
auto ret = IsValidBoolScript<PlayerScript>([&](PlayerScript* script)