diff --git a/app/imports/api/engine/action/applyProperties/applyDamageProperty.test.ts b/app/imports/api/engine/action/applyProperties/applyDamageProperty.test.ts index a77c1ba3..146f56a0 100644 --- a/app/imports/api/engine/action/applyProperties/applyDamageProperty.test.ts +++ b/app/imports/api/engine/action/applyProperties/applyDamageProperty.test.ts @@ -211,7 +211,7 @@ describe('Apply Damage Properties', function () { }]); }); - it.only('Applies effects when doing damage', async function () { + it('Applies effects when doing damage', async function () { const action = await runActionById(damageWithEffectsId, [targetCreatureId]); assert.exists(action); assert.deepEqual(allMutations(action), [{ diff --git a/app/imports/api/engine/loadCreatures.ts b/app/imports/api/engine/loadCreatures.ts index 51a0ca72..5e05df26 100644 --- a/app/imports/api/engine/loadCreatures.ts +++ b/app/imports/api/engine/loadCreatures.ts @@ -84,10 +84,9 @@ export function getProperties(creatureId: string): CreatureProperty[] { export function getPropertiesOfType(creatureId, propType) { const creature = loadedCreatures.get(creatureId); if (creature) { - const props = Array.from( - creature.properties.values() - .filter(prop => !prop.removed && prop.type === propType) - ).sort((a, b) => a.left - b.left); + const props = Array.from(creature.properties.values()) + .filter(prop => !prop.removed && prop.type === propType) + .sort((a, b) => a.left - b.left); return EJSON.clone(props); } // console.time(`Cache miss on creature properties: ${creatureId}`) @@ -111,10 +110,9 @@ export function getPropertiesOfType(creatureId, propType) { export function getPropertiesByFilter(creatureId, filterFn: (any) => boolean, mongoFilter: Mongo.Selector) { const creature = loadedCreatures.get(creatureId); if (creature) { - const props: CreatureProperty[] = Array.from( - creature.properties.values() - .filter(filterFn) - ).sort((a, b) => a.left - b.left); + const props: CreatureProperty[] = Array.from(creature.properties.values()) + .filter(filterFn) + .sort((a, b) => a.left - b.left); return EJSON.clone(props); } // console.time(`Cache miss on creature properties: ${creatureId}`)