Additional StatusUpdate changes for Beast Points.

This commit is contained in:
MobiusDevelopment
2022-04-22 21:26:00 +00:00
parent 328d32d750
commit c177d78201
2 changed files with 10 additions and 2 deletions

View File

@@ -5626,10 +5626,17 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if ((oldValue == null) || (oldValue != newValue))
{
su.addUpdate(type, newValue);
if ((type == StatusUpdateType.MAX_DP) && isPlayer())
if (isPlayer())
{
if ((type == StatusUpdateType.MAX_DP))
{
su.addUpdate(StatusUpdateType.CUR_DP, getActingPlayer().getDeathPoints());
}
else if ((type == StatusUpdateType.MAX_BP))
{
su.addUpdate(StatusUpdateType.CUR_BP, getActingPlayer().getBeastPoints());
}
}
return newValue;
}
return oldValue;

View File

@@ -54,6 +54,7 @@ public class StatusUpdate implements IClientOutgoingPacket
case CUR_MP:
case CUR_CP:
case CUR_DP:
case CUR_BP:
{
_isVisible = true;
}