       [coins, potions] = trashed.getCost(state)
       for i in [0...coins]
         state.gainCard(state.current, c.Silver)
-  
+
   # `reactReplacingGain` triggers before `reactToGain`, and lets you replace
   # the card with a different one.
   reactReplacingGain: (state, player, card) ->

    else
      state.log("Invalid choice for HuntingGroundsGain: #{choice}!")
      state.gainCard(player, c.Duchy)
  
  ai_playValue: (state, my) ->
    if my.actions > 1 then 666 else 201
  ai_multipliedValue: (state, my) ->

        opp.discard = opp.discard.concat(drawn)
        state.handleDiscards(opp, drawn)
        state.log("...#{opp.ai} discards #{drawn}.")

      if attackSuccess
        state.current.mats.pirateShip += 1
        state.log("...#{state.current.ai} takes a Coin token (#{state.current.mats.pirateShip} on the mat).")
