Disable pledge bonus claim button when needed.

This commit is contained in:
MobiusDevelopment
2021-10-30 01:55:36 +00:00
parent f171dddd9e
commit 51541e68b0
12 changed files with 24 additions and 24 deletions

View File

@ -84,14 +84,14 @@ public class ExPledgeBonusOpen implements IClientOutgoingPacket
packet.writeD(clan.getMaxOnlineMembers());
packet.writeD(membersOnlineBonus != null ? highestMembersOnlineBonus.getSkillReward().getSkillId() : 0x00);
packet.writeC(membersOnlineBonus != null ? membersOnlineBonus.getLevel() : 0x00);
packet.writeC(membersOnlineBonus != null ? 0x01 : 0x00);
packet.writeC(clan.canClaimBonusReward(_player, ClanRewardType.MEMBERS_ONLINE) ? 0x01 : 0x00);
// Hunting bonus
packet.writeD(highestHuntingBonus.getRequiredAmount());
packet.writeD(clan.getHuntingPoints());
packet.writeD(huntingBonus != null ? highestHuntingBonus.getItemReward().getId() : 0x00);
packet.writeC(huntingBonus != null ? huntingBonus.getLevel() : 0x00);
packet.writeC(huntingBonus != null ? 0x01 : 0x00);
packet.writeC(clan.canClaimBonusReward(_player, ClanRewardType.HUNTING_MONSTERS) ? 0x01 : 0x00);
return true;
}
}