misc fixes

This commit is contained in:
Mashy
2019-07-01 21:23:13 +10:00
parent 81970f5abf
commit 9e5a612739
4 changed files with 5 additions and 17 deletions
-3
View File
@@ -40,13 +40,11 @@ const SOURCE_ANIM_MS = 850;
function animations(props) {
const { game, account, resolution, player, construct } = props;
console.log(resolution);
if (!resolution) return false;
const [, event] = resolution.event;
if (!event.skill) return false;
if (!resolution.target) return false;
const { stages } = resolution;
console.log(stages);
// source animation
if (resolution.source.id === construct.id && stages.includes('START_SKILL')) {
@@ -89,7 +87,6 @@ function animations(props) {
if (resolution.target.id !== construct.id) return false;
// target animation
console.log(stages);
const anim = text => {
console.log(text);
if (!text || !stages.includes('END_SKILL')) return false;
+1 -2
View File
@@ -2,8 +2,7 @@ const { connect } = require('preact-redux');
const preact = require('preact');
const range = require('lodash/range');
const actions = require('../actions');
const { STATS, eventClasses, getCombatText } = require('../utils');
const { STATS, eventClasses } = require('../utils');
const { ConstructAvatar } = require('./construct');
const animations = require('./animations');
const shapes = require('./shapes');