Spaces:
Running
Running
Rebuild comboBattler: no default skills
Browse filesCo-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- 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
|
| 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);
|