Trekiros / battleSim

A simple encounter simulator for TTRPG battles, to help game master plan fun games.
battlesim-zeta.vercel.app
50 stars 19 forks source link

Bonus action spell rule needs to be implemented #10

Open SuperParkourio opened 1 year ago

SuperParkourio commented 1 year ago

If a character has a bonus action and an action to take, then the character will perform both, even if they are both spells of 1st level or higher. This is incorrect behavior, because 5e D&D balances bonus action spells by preventing you from casting other spells that same turn (except for cantrips with a casting time of 1 action).

Steps to reproduce the behavior:

  1. Go to Battle Sim.
  2. Create a party with a cleric.
  3. Add a CR 3 archer (if the monster is too weak, the cleric won't bother using both spells).
  4. Hover over the cleric and see that they've cast both Spiritual Weapon and Bless.

Expected Behavior: The cleric should have either cast Bless or cast a Spiritual Weapon + Sacred Flame combo, whichever the algorithm believes is more optimal.

image

Desktop: