zone state init
This commit is contained in:
@@ -44,8 +44,6 @@ function calculateTweenParams(sourceSpawn, targetSpawn, account) {
|
||||
}
|
||||
|
||||
function animatePhase(scene, game, resolution, cb) {
|
||||
|
||||
console.log(resolution);
|
||||
// return early for disabled skills
|
||||
if (resolution.resolution.disable.disabled) return cb();
|
||||
const group = scene.scene.get('CombatCryps').cryps;
|
||||
@@ -73,7 +71,7 @@ function animatePhase(scene, game, resolution, cb) {
|
||||
if (moveSourceBattle) scene.tweens.add(moveSourceBattle);
|
||||
scene.tweens.add(moveTargetBattle);
|
||||
|
||||
scene.time.delayedCall(MOVE_CREEP, () => {
|
||||
return scene.time.delayedCall(MOVE_CREEP, () => {
|
||||
const isAlly = resolution.target_team_id !== account.id;
|
||||
// animate animation
|
||||
const workingSkills = ['Heal', 'Block'];
|
||||
|
||||
@@ -124,11 +124,11 @@ class MenuGameList extends Phaser.Scene {
|
||||
|
||||
boss.on('pointerdown', () => {
|
||||
const team = cryps.filter(c => c.active).map(c => c.id);
|
||||
if (team.length === 0) return false;
|
||||
this.scene.add('Missions', Missions);
|
||||
this.scene.run('Missions');
|
||||
this.cleanUp();
|
||||
// return ws.sendGamePve(team, 'Boss');
|
||||
// if (team.length === 0) return false;
|
||||
// this.scene.add('Missions', Missions);
|
||||
// this.scene.run('Missions');
|
||||
// this.cleanUp();
|
||||
return ws.sendZoneCreate();
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user