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,9 +5626,16 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if ((oldValue == null) || (oldValue != newValue)) if ((oldValue == null) || (oldValue != newValue))
{ {
su.addUpdate(type, newValue); su.addUpdate(type, newValue);
if ((type == StatusUpdateType.MAX_DP) && isPlayer()) if (isPlayer())
{ {
su.addUpdate(StatusUpdateType.CUR_DP, getActingPlayer().getDeathPoints()); 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 newValue;
} }

View File

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