import WildlingCardType from "./WildlingCardType" ; import WildlingsAttackGameState from "../../westeros-game-state/wildlings-attack-game-state/WildlingsAttackGameState" ; import House from "../House" ; import * as _ from "lodash" ; import PreemptiveRaidWildlingVictoryGameState from "../../westeros-game-state/wildlings-attack-game-state/preemptive-raid-wildling-victory-game-state/PreemptiveRaidWildlingVictoryGameState" ; export default class PreemptiveRaidWildlingCardType extends WildlingCardType { executeNightsWatchWon ( wildlingsAttack ) { const wildlingStrength = 6 ; wildlingsAttack . game . wildlingStrength = wildlingStrength ; wildlingsAttack . entireGame . broadcastToClients ( { type : "change-wildling-strength" , wildlingStrength : wildlingStrength } ) ; wildlingsAttack . ingame . log ( { type : "preemptive-raid-wildlings-attack" , house : wildlingsAttack . highestBidder . id , wildlingStrength : wildlingStrength } ) ; wildlingsAttack . parentGameState . setChildGameState ( new WildlingsAttackGameState ( wildlingsAttack . parentGameState ) ) . firstStart ( wildlingStrength , _ . difference ( wildlingsAttack . game . houses . values , [ wildlingsAttack . highestBidder as House ] ) ) ; } executeWildlingWon ( wildlingsAttack ) { wildlingsAttack . setChildGameState ( new PreemptiveRaidWildlingVictoryGameState ( wildlingsAttack ) ) . firstStart ( ) ; } }