Skip to content

Commit

Permalink
v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Moerill committed Apr 4, 2021
1 parent 0effe46 commit 42e719c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v1.5.1

- **Fix** for automated animation compatibility where the target tokens where sometimes misplaced.

# v1.5.0

- **New Feature** Basic support for the ![Automated Animations](https://www.foundryvtt-hub.com/package/automated-jb2a-animations/) module! Thanks to @Otigon for his awesome cooperation here!
Expand Down
4 changes: 3 additions & 1 deletion js/chat/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,6 @@ export default class Mars5eMessage extends ChatMessage {
// this._updateApplyDmgAmount(actionDiv);

if (this.id) {
console.log("yayayay");
const target = this._getTarget(resultDiv);
Hooks.callAll("mars-5e.DamageRollComplete", {
source: this.token,
Expand Down Expand Up @@ -904,6 +903,9 @@ export default class Mars5eMessage extends ChatMessage {
if (!targetId) return null;
const content = el.closest(".mars5e-card");
const sceneId = content.dataset.sceneId;
if (sceneId === canvas.scene.id) {
return canvas.tokens.get(targetId);
}
const scene = game.scenes.get(sceneId);
const data = scene.getEmbeddedEntity("Token", targetId);
// const data = await fromUuid(`Scene.${sceneId}.Token.${targetId}`);
Expand Down
1 change: 0 additions & 1 deletion js/plugins/automated-animations.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export function initAutomatedAnimations() {
({ source, target = null, targets = [], item, success } = {}) => {
if (target) targets = [{ target, success }];
//targets = targets.filter((e) => e.success);
targets, targets.map((e) => e.target);
AutoAnimations.playAnimation(
source,
targets.map((e) => e.target),
Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"name": "mars-5e",
"title": "Mars 5e - Moerills alternative rolling style for 5e",
"description": "This module provides an opinionated alternative to how the roll workflow in DnD5e and how they're displayed.<br>Main goal is to provide some flexibility in how much information is displayed to the players from the GM side, while also automating some basic tasks. To avoid having to care about all possible edge cases and houserules almost every automatic generated result is toggleable.",
"version": "1.5.0",
"version": "1.5.1",
"author": "Moerill",
"esmodules": ["js/index.js"],
"styles": ["mars-5e.css"],
"minimumCoreVersion": "0.7.8",
"compatibleCoreVersion": "0.7.9",
"socket": true,
"manifest": "https://raw.githubusercontent.com/Moerill/fvtt-mars-5e/master/module.json",
"download": "https://github.com/Moerill/fvtt-mars-5e/releases/download/v1.5.0/v1.5.0.zip",
"download": "https://github.com/Moerill/fvtt-mars-5e/releases/download/v1.5.1/v1.5.1.zip",
"url": "https://github.com/Moerill/fvtt-mars-5e",
"languages": [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "module-template",
"version": "1.5.0",
"version": "1.5.1",
"description": "",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down

0 comments on commit 42e719c

Please sign in to comment.