feat(Core/Scripting): OnBuildValuesUpdate hook (#9961)
This commit is contained in:
parent
413e4b52d8
commit
a5a66207c4
3 changed files with 22 additions and 0 deletions
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue