misc fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user