Only owner of cards should get triggers from their cards.
This commit is contained in:
@@ -47,7 +47,8 @@ public class Card8_073 extends AbstractEvent {
|
||||
new AbstractActionProxy() {
|
||||
@Override
|
||||
public List<? extends Action> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult) {
|
||||
if (PlayConditions.winsSkirmish(game, effectResult, card)) {
|
||||
if (PlayConditions.winsSkirmish(game, effectResult, card)
|
||||
&& playerId.equals(card.getOwner())) {
|
||||
OptionalTriggerAction action = new OptionalTriggerAction(self);
|
||||
action.setActionAttachedToCard(card);
|
||||
action.appendEffect(
|
||||
|
||||
@@ -30,9 +30,11 @@ public class KilledCardRule {
|
||||
Set<PhysicalCard> killedCards = killResult.getKilledCards();
|
||||
List<OptionalTriggerAction> actions = new LinkedList<OptionalTriggerAction>();
|
||||
for (PhysicalCard killedCard : killedCards) {
|
||||
OptionalTriggerAction trigger = killedCard.getBlueprint().getKilledOptionalTrigger(game, killedCard);
|
||||
if (trigger != null)
|
||||
actions.add(trigger);
|
||||
if (killedCard.getOwner().equals(playerId)) {
|
||||
OptionalTriggerAction trigger = killedCard.getBlueprint().getKilledOptionalTrigger(game, killedCard);
|
||||
if (trigger != null)
|
||||
actions.add(trigger);
|
||||
}
|
||||
}
|
||||
return actions;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user