fix(rules): acid arrow recurring total cap (1+6=7 rounds at 18th, the SRD max counts additional rounds) and ice slick flat scaling 1d6+1/level max +10 (SRD spells/acid-arrow.md, spells/ice-slick.md)
This commit is contained in:
@@ -118,9 +118,11 @@ def _acid_rounds(level: int) -> int:
|
||||
|
||||
class TestAcidArrowRecurringRounds:
|
||||
"""Given: Acid Arrow's recurring scaling (1 + one round per three levels,
|
||||
max 6)
|
||||
max 6 ADDITIONAL rounds = 7 total at 18th)
|
||||
When: resolved for caster levels 1 / 3 / 18
|
||||
Then: it is 1 / 2 / 6 rounds (SRD spells/acid-arrow.md)."""
|
||||
Then: it is 1 / 2 / 7 rounds (SRD spells/acid-arrow.md: "1 round + 1 round
|
||||
per three levels [...] to a maximum of 6 additional rounds at 18th level"
|
||||
- the cap counts ADDITIONAL rounds, so the total is 1 + 6 = 7)."""
|
||||
|
||||
def test_one_round_at_low_level(self) -> None:
|
||||
assert _acid_rounds(1) == 1
|
||||
@@ -128,9 +130,9 @@ class TestAcidArrowRecurringRounds:
|
||||
def test_two_rounds_at_level_3(self) -> None:
|
||||
assert _acid_rounds(3) == 2
|
||||
|
||||
def test_caps_at_six(self) -> None:
|
||||
assert _acid_rounds(18) == 6
|
||||
assert _acid_rounds(20) == 6
|
||||
def test_caps_at_seven_total(self) -> None:
|
||||
assert _acid_rounds(18) == 7
|
||||
assert _acid_rounds(20) == 7
|
||||
|
||||
|
||||
class TestAcidArrowAttachesRecurring:
|
||||
|
||||
Reference in New Issue
Block a user