Popup damage can increase the system message param length.

This commit is contained in:
MobiusDev
2018-03-27 00:19:33 +00:00
parent 4fc1cb4338
commit 30ce5ece22
14 changed files with 38 additions and 14 deletions

View File

@ -131,7 +131,11 @@ public abstract class AbstractMessagePacket<T extends AbstractMessagePacket<?>>
{
_params = Arrays.copyOf(_params, _paramIndex + 1);
_smId.setParamCount(_paramIndex + 1);
_log.info("Wrong parameter count '" + (_paramIndex + 1) + "' for SystemMessageId: " + _smId);
// Mobius: With additional on-screen damage param (popup), length is increased.
if (param.getType() != TYPE_POPUP_ID)
{
_log.info("Wrong parameter count '" + (_paramIndex + 1) + "' for SystemMessageId: " + _smId);
}
}
_params[_paramIndex++] = param;