Describe the bug
When automated animations is configured to use a template from warpgate (in CP RED Core). During the attack roll and prior to the OnClick to place the template sequencer gets stuck in a loop and stack size is exceeded by an uncaught error/
To Reproduce
Steps to reproduce the behavior:
Install: AA, WG, Sequencer, Advanced Macros and configure grenade ammo in AA
Select a target.
Roll an attack for a grenade (via launcher or thrown weapon).
Expected behavior
A roll will take place.
User will click a spot on the active scene.
a 10x10 square template will display.
a thrown grenade animation will play.
Screenshots
Setup:
Foundry Version: V11
System Version: CP RED Core v 0.88.2
Sequencer Version: 3.14
Browser & version MS Edge Version 122.0.2365.52
Active modules:
Please see attached screenshots
Additional context
A different error is thrown when other ammunition types are used. Please see screen
WarpgateSquareTemplate macro
const handler = args[1];
const inputData = args[2];
let config = {
icon: "icons/svg/explosion.svg",
rememberControlled: true,
size: inputData.size,
label: handler.item?.name || handler.animationData.label,
drawIcon: true,
drawOutline: true,
}
let position = await warpgate.crosshairs.show(config);
let tempSize = inputData.size * 2;
let hypDist = Math.sqrt((tempSize * tempSize) * 2)
let canvasDist = canvas.dimensions.distance;
let trueWidth = tempSize / canvasDist;
let gridSize = canvas.grid.size;
let trueX = position.x - ((trueWidth / 2) * gridSize);
let trueY = position.y - ((trueWidth / 2) * gridSize);
let templateInfo = {
angle: 0,
direction: 45,
distance: hypDist ,
fillColor: game.user.color,
x: trueX,
y: trueY,
borderColor: "#000000",
t: "rect",
}
canvas.scene.createEmbeddedDocuments("MeasuredTemplate", [templateInfo])
Describe the bug When automated animations is configured to use a template from warpgate (in CP RED Core). During the attack roll and prior to the OnClick to place the template sequencer gets stuck in a loop and stack size is exceeded by an uncaught error/
To Reproduce Steps to reproduce the behavior:
Expected behavior A roll will take place. User will click a spot on the active scene. a 10x10 square template will display. a thrown grenade animation will play.
Screenshots
Setup:
Active modules: Please see attached screenshots
Additional context A different error is thrown when other ammunition types are used. Please see screen
WarpgateSquareTemplate macro