Skip to content

Commit

Permalink
bot weapon bug fix
Browse files Browse the repository at this point in the history
fixed a bug that caused bots to equip weapons that were technically allowed for their class but that didn't work with their skills
  • Loading branch information
pimittens committed Dec 28, 2024
1 parent 09c7a0d commit b30bb62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/client/CharacterBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -2318,8 +2318,8 @@ private void checkEquips() {
}

private boolean jobAppropriateEquip(int itemId) {
if (ItemConstants.isWeapon(itemId) && !isJobAppropriateWeapon(itemId)) {
return false;
if (ItemConstants.isWeapon(itemId)) {
return isJobAppropriateWeapon(itemId);
}
ItemInformationProvider ii = ItemInformationProvider.getInstance();
int reqJob = ii.getEquipStats(itemId).get("reqJob");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ protected AttackInfo parseDamage(InPacket p, Character chr, boolean ranged, bool
Point curPos = p.readPos();
Point nextPos = p.readPos();
short delay = p.readShort();
System.out.println("delay: " + delay);
//System.out.println("delay: " + delay);
List<Integer> damageLines = new ArrayList<>();
final Monster monster = chr.getMap().getMonsterByOid(oid);
if (chr.getBuffEffect(BuffStat.WK_CHARGE) != null) {
Expand Down

0 comments on commit b30bb62

Please sign in to comment.