Skip to content

Commit

Permalink
Merge pull request #274 from draconas1/main
Browse files Browse the repository at this point in the history
fix: Bonus effect checker to check implement type
  • Loading branch information
EndlesNights authored Mar 19, 2023
2 parents f5e76d7 + 9a9beb6 commit 3db0d6c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions module/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ export class Helper {
this._addKeywords(suitableKeywords, weaponInnerData.weaponGroup)
this._addKeywords(suitableKeywords, weaponInnerData.properties)
this._addKeywords(suitableKeywords, weaponInnerData.damageType)
/* Unnecessary with the later tool logic? Just commenting out for now cus I'm afraid I'm going to break required tool detection.—Fox
this._addKeywords(suitableKeywords, weaponInnerData.implement)*/
this._addKeywords(suitableKeywords, weaponInnerData.implement) // implement group for implement powers. Bad naming of property, sorry -Drac
}

if (powerInnerData.powersource) {
Expand All @@ -195,7 +194,7 @@ export class Helper {
suitableKeywords.push("meleeWeapon");
break;
case "ranged":
suitableKeywords.push("usesWeapon");
suitableKeywords.push("weapon");
suitableKeywords.push("rangedWeapon");
break;
case "meleeRanged":
Expand Down

0 comments on commit 3db0d6c

Please sign in to comment.