frontend fixes

This commit is contained in:
ntr 2019-03-24 22:47:47 +11:00
parent d002e3c58b
commit 3a20de13e8

View File

@ -46,7 +46,10 @@ function calculateTweenParams(sourceSpawn, targetSpawn, account) {
function animatePhase(scene, game, resolution, cb) { function animatePhase(scene, game, resolution, cb) {
// return early for disabled skills // return early for disabled skills
if (resolution.resolution.disable.disabled) return cb(); const { resolution: { results } } = resolution;
if (results.length === 0) return cb();
if (results[0][0] === 'Disable') return cb();
const group = scene.scene.get('CombatCryps').cryps; const group = scene.scene.get('CombatCryps').cryps;
const animations = new CombatAnimations(scene); const animations = new CombatAnimations(scene);
const account = scene.registry.get('account'); const account = scene.registry.get('account');
@ -65,10 +68,6 @@ function animatePhase(scene, game, resolution, cb) {
}; };
const castLocation = castParams(); const castLocation = castParams();
const { resolution: { results } } = resolution;
if (results.length === 0) return cb();
// Move cryps into position // Move cryps into position
if (moveSourceBattle) scene.tweens.add(moveSourceBattle); if (moveSourceBattle) scene.tweens.add(moveSourceBattle);
scene.tweens.add(moveTargetBattle); scene.tweens.add(moveTargetBattle);