Skip to content

Commit

Permalink
Fix Scout's steed giving too much information
Browse files Browse the repository at this point in the history
  • Loading branch information
lsocrate committed Jan 17, 2024
1 parent 2946f04 commit 6d4100d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions server/game/cards/18.1-EL01/Unicorn/ScoutsSteed.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import AbilityDsl from '../../../abilitydsl';
import { CardTypes, Durations, Locations } from '../../../Constants';
import DrawCard from '../../../drawcard';
import { ProvinceCard } from '../../../ProvinceCard';

export default class ScoutsSteed extends DrawCard {
static id = 'scout-s-steed';
Expand Down Expand Up @@ -41,8 +42,11 @@ export default class ScoutsSteed extends DrawCard {
]
})
),
effect: "ready {1} and send them on a journey! {0} cannot be broken during this conflict - it's just exploration for now",
effectArgs: (context) => [context.source.parent]
effect: "ready {1} and send them on a journey! {2} cannot be broken during this conflict - it's just exploration for now",
effectArgs: (context) => [
context.source.parent,
context.target.isFacedown() ? context.target.location : context.target
]
});
}
}
2 changes: 1 addition & 1 deletion test/server/cards/18.1-EL01/Unicorn/ScoutsSteed.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Scouts Steed', function () {

this.player1.clickCard(this.fertileFacedown);
expect(this.getChatLogs(3)).toContain(
"player1 uses Scout's Steed to ready Shinjo Archer and send them on a journey! Fertile Fields cannot be broken during this conflict - it's just exploration for now"
"player1 uses Scout's Steed to ready Shinjo Archer and send them on a journey! province 2 cannot be broken during this conflict - it's just exploration for now'"
);
expect(this.player1).toHavePrompt('Military Air Conflict');
expect(this.player1).not.toHavePromptButton('Pass Conflict');
Expand Down

0 comments on commit 6d4100d

Please sign in to comment.