Update module/data/fields/action/summonField.mjs

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
This commit is contained in:
WBHarry 2026-01-13 10:09:12 +01:00 committed by GitHub
parent 379398f2c7
commit 4c860a3239
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,7 +79,7 @@ export default class DHSummonField extends fields.ArrayField {
summon.actor = result.actor;
summon.count--;
if (summon.count === 0) {
if (summon.count <= 0) {
summonIndex++;
if (summonIndex === summonData.length) return actionActor.sheet?.maximize();
}