rely on stringification instead of state reports
This commit is contained in:
+5
-5
@@ -5,7 +5,7 @@ import Team from './team.js'
|
||||
export default class Template {
|
||||
static minion(team, options = {}) {
|
||||
return {
|
||||
abilities: [options.ranged ? Ability.rangedAttack : Ability.meleeAttack, null, null, null],
|
||||
abilities: [options.ranged ? Ability.rangedAttack.id : Ability.meleeAttack.id, null, null, null],
|
||||
height: options.ranged ? 40 : 38,
|
||||
logic: this.#minionLogic(options.route),
|
||||
maxHealth: options.ranged ? 300 : 450,
|
||||
@@ -20,10 +20,10 @@ export default class Template {
|
||||
static player(overrides) {
|
||||
return {
|
||||
abilities: [
|
||||
Ability.rangedAttack,
|
||||
Ability.straightShot,
|
||||
Ability.shieldThrow,
|
||||
Ability.blink,
|
||||
Ability.rangedAttack.id,
|
||||
Ability.straightShot.id,
|
||||
Ability.shieldThrow.id,
|
||||
Ability.blink.id,
|
||||
],
|
||||
height: 80,
|
||||
logic: this.#playerLogic,
|
||||
|
||||
Reference in New Issue
Block a user