Skip to content

Judge three more rules by a drained monster's Hit Dice, and give death spell its cube - #194

Merged
mmacy merged 3 commits into
mainfrom
chunk/drain-and-area
Oct 30, 2026
Merged

mmacy merged 3 commits into
mainfrom
chunk/drain-and-area

Conversation

@mmacy

@mmacy mmacy commented Oct 30, 2026

Copy link
Copy Markdown
Owner

Two rules gaps I found during the backlog work.

Drained Hit Dice

Energy drain lowers a monster's Hit Dice, and #188 made sleep use the Hit Dice the monster has left. Three more rules now use that count, MonsterInstance.hit_dice_count, instead of the template's:

  • Confusion's re-save each round. The SRD gives the re-save to "Subjects of 2+1 HD or greater".
  • The Hit Dice bands of the protection scrolls ("1–3 HD: 2d12 undead affected ...").
  • The optional rule that lets a monster of 5 Hit Dice or more harm a creature only magic can hurt.

The wight page says a drain removes "all other benefits due to the drained level". The turning column and experience value still use the template, because the SRD ties them to the kind of monster ("the HD of the type of undead monsters targeted", and a stat block's pre-calculated XP).

Death spell aimed at a group

An hd_budget spell aimed at a group with target_group_id took every living member of the group. That's right for sleep, which has no area, but death spell has a 60' cube. A group-aimed hd_budget spell with an area now takes the same candidates _area_candidates gives an area spell. With aoe_friendly_fire on at melee range, that includes the engaged front rank, as with fire ball.

What to check

  • No golden file changed.
  • check_immunity reads hit_dice_count through getattr, because the Creature protocol it takes doesn't declare that attribute.

https://claude.ai/code/session_01V7ErtnsmhaP7aLwcfmzohD

mmacy added 3 commits October 30, 2026 14:28
Pin that a drained monster's remaining Hit Dice decide confusion's
re-save, the protection-scroll ward bands, and the 5 HD optional rule.
Guards pin that the turning column stays with the monster type.

Pin that a group-aimed hd_budget spell with an area, like death spell's
60' cube, takes only the candidates its area would take. Guards pin that
sleep still takes every living member and that named targets win.

The eight acceptance tests are marked xfail for chunk drain-and-area.
The adaptations register and the public docstrings state the new rules.

Claude-Session: https://claude.ai/code/session_01V7ErtnsmhaP7aLwcfmzohD
…oup aim to its cube

The confusion re-save, the protection-scroll Hit Dice bands, and the 5 HD
counts-as-magical check now read MonsterInstance.hit_dice_count instead of the
template. A death spell aimed at a group with target_group_id now takes only the
candidates its 60' cube would take, through _area_candidates. Sleep is unchanged.
No golden file changed.

Claude-Session: https://claude.ai/code/session_01V7ErtnsmhaP7aLwcfmzohD
@mmacy
mmacy merged commit 3349d4d into main Oct 30, 2026
5 checks passed
@mmacy
mmacy deleted the chunk/drain-and-area branch October 30, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant