very gross ko logging and resolutions

This commit is contained in:
ntr
2018-12-11 22:33:32 +11:00
parent f49e00f0da
commit ea2064e7c1
4 changed files with 55 additions and 24 deletions
@@ -63,6 +63,11 @@ function animatePhase(scene, game, resolution, cb) {
moveSourceBattle, moveSourceOrig, moveTargetBattle, moveTargetOrig,
} = calculateTweenParams(sourceSpawn, targetSpawn, account);
// ew
const { resolution: { results } } = resolution;
if (results.len === 0) return cb();
// Move cryps into posistion
if (moveSourceBattle) scene.tweens.add(moveSourceBattle);
scene.tweens.add(moveTargetBattle);
@@ -74,9 +79,6 @@ function animatePhase(scene, game, resolution, cb) {
// Target cryp takes damage
scene.time.delayedCall(ANIMATION_DURATION, () => {
// ew
const { resolution: { results } } = resolution;
eachSeries(results,
(result, tickCb) => {
// touch