very gross ko logging and resolutions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user