Skip to content

Commit

Permalink
fix: large spell selection and restrictions for Animists
Browse files Browse the repository at this point in the history
Fixes #803
  • Loading branch information
elyukai committed May 6, 2021
1 parent 3d755eb commit 2ad037e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/App/Utilities/Increasable/spellUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@ export const isSpellsRitualsCountMaxReached =
(wiki)
(hero)

if (isLastTrad (SpecialAbilityId.traditionIntuitiveMage)) {
if (isLastTrad (SpecialAbilityId.traditionIntuitiveMage)
|| isLastTrad (SpecialAbilityId.traditionAnimisten)) {
const mbonus = lookup (AdvantageId.largeSpellSelection) (HA.advantages (hero))
const mmalus = lookup (DisadvantageId.smallSpellSelection) (HA.disadvantages (hero))

Expand All @@ -431,10 +432,6 @@ export const isSpellsRitualsCountMaxReached =
}
}

if (isLastTrad (SpecialAbilityId.traditionAnimisten) && current_count >= BASE_MAX_INTU_ANIM) {
return true
}

const maxSpellsLiturgicalChants =
pipe_ (
hero,
Expand Down

0 comments on commit 2ad037e

Please sign in to comment.