feat(Core/Scripting): OnBuildValuesUpdate hook (#9961)

This commit is contained in:
Skjalf
2022-01-01 23:37:04 -03:00
committed by GitHub
parent 413e4b52d8
commit a5a66207c4
3 changed files with 22 additions and 0 deletions

View File

@@ -20082,8 +20082,15 @@ void Unit::BuildValuesUpdate(uint8 updateType, ByteBuffer* data, Player* target)
}
}
else
{
if (!sScriptMgr->OnBuildValuesUpdate(this, updateType, fieldBuffer, target, index))
{
continue;
}
// send in current format (float as float, uint32 as uint32)
fieldBuffer << m_uint32Values[index];
}
}
}