Skip to content

Commit

Permalink
fix ARMOR selector
Browse files Browse the repository at this point in the history
  • Loading branch information
planqi committed May 1, 2019
1 parent 47616eb commit 5005b19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BH/Modules/Item/ItemDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ void Condition::BuildConditions(vector<Condition*> &conditions, string token) {
Condition::AddOperand(conditions, new ItemStatCondition(STAT_MINIMUMDAMAGE, 0, operation, value));
} else if (key.compare(0, 6, "MAXDMG") == 0) {
Condition::AddOperand(conditions, new ItemStatCondition(STAT_MAXIMUMDAMAGE, 0, operation, value));
} else if (key.compare(0, 2, "AR") == 0) {
} else if (key.compare(0, 2, "AR") == 0 && keylen == 2) {
Condition::AddOperand(conditions, new ItemStatCondition(STAT_ATTACKRATING, 0, operation, value));
} else if (key.compare(0, 3, "DTM") == 0) {
Condition::AddOperand(conditions, new ItemStatCondition(STAT_DAMAGETOMANA, 0, operation, value));
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Mustache[stash]: {{#this}}* {{>item}}\n\n{{/this}}
* `BELT` `CHEST` `HELM` `SHIELD` `GLOVES` `BOOTS` `CIRC`
* `AXE` `MACE` `SWORD` `DAGGER` `THROWING` `JAV` `SPEAR` `POLEARM` `BOW` `XBOW` `STAFF` `WAND` `SCEPTER`
* They have the same functionality as `WP1` and `EQ1` style selectors
* Fixed `JAV`/`WP6` selectors
* Fixed `JAV`/`WP6` and `ARMOR` selectors

# Release Notes for 1.9.2
* Add custom notification colors `%notify-1%`
Expand Down

0 comments on commit 5005b19

Please sign in to comment.