Only the owner of the minion gets to Ambush.

This commit is contained in:
marcins78@gmail.com
2011-12-02 11:18:47 +00:00
parent c04b2e2f6c
commit 6a2c87515a

View File

@@ -31,8 +31,7 @@ public class AmbushRule {
AssignmentResult assignmentResult = (AssignmentResult) effectResult;
if (assignmentResult.getPlayerId().equals(game.getGameState().getCurrentPlayerId())) {
PhysicalCard assignedCard = assignmentResult.getAssignedCard();
if (Filters.and(CardType.MINION, Keyword.AMBUSH).accepts(game.getGameState(), game.getModifiersQuerying(), assignedCard)
&& assignedCard.getOwner().equals(playerId)) {
if (Filters.and(CardType.MINION, Keyword.AMBUSH, Filters.owner(playerId)).accepts(game.getGameState(), game.getModifiersQuerying(), assignedCard)) {
final int count = game.getModifiersQuerying().getKeywordCount(game.getGameState(), assignedCard, Keyword.AMBUSH);
OptionalTriggerAction action = new OptionalTriggerAction("ambush" + assignedCard.getCardId(), assignedCard);
action.setText("Ambush - add " + count);