polats Claude Opus 4.8 (1M context) commited on
Commit
4dcaaae
·
1 Parent(s): aab70c1

Rebuild comboBattler: no default skills

Browse files

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Files changed (1) hide show
  1. web/comboBattler.js +1 -3
web/comboBattler.js CHANGED
@@ -6869,9 +6869,7 @@ function mountComboBattler(pixi, host, opts = {}) {
6869
  }
6870
  return { x: Math.max(0, Math.min(field.w, fx2)), y: Math.max(0, Math.min(field.h, fy)) };
6871
  };
6872
- const pProf = player?.unit?.profession;
6873
- const pSkills = player?.unit?.skills?.length ? player.unit.skills : CB_SKILLS.filter((s) => s.profession === pProf).slice(0, 3).map((s) => s.id);
6874
- const players = [{ ...player?.unit || {}, name: player?.name || "Hero", control: "player", skills: pSkills }];
6875
  battle = makeTeamBattle({ seed, players, enemies: [], sandbox: true, freeCast: false, world, field });
6876
  const sw = getSpawnWorld();
6877
  const start = worldToField(sw.x, sw.y);
 
6869
  }
6870
  return { x: Math.max(0, Math.min(field.w, fx2)), y: Math.max(0, Math.min(field.h, fy)) };
6871
  };
6872
+ const players = [{ ...player?.unit || {}, name: player?.name || "Hero", control: "player", skills: player?.unit?.skills || [] }];
 
 
6873
  battle = makeTeamBattle({ seed, players, enemies: [], sandbox: true, freeCast: false, world, field });
6874
  const sw = getSpawnWorld();
6875
  const start = worldToField(sw.x, sw.y);