* Sigil of Valor - Fixed wrong trigger condition.

This commit is contained in:
LevelX2 2015-07-13 19:05:05 +02:00
parent b1f5b15f2d
commit c6dd29ef20

View file

@ -101,10 +101,14 @@ class SigilOfValorTriggeredAbility extends TriggeredAbilityImpl {
@Override
public boolean checkTrigger(GameEvent event, Game game) {
if (game.getActivePlayerId().equals(this.controllerId)) {
if (game.getActivePlayerId().equals(getControllerId())) {
if (game.getCombat().attacksAlone()) {
this.getEffects().get(0).setTargetPointer(new FixedTarget(game.getCombat().getAttackers().get(0)));
return true;
Permanent equipment = game.getPermanent(getSourceId());
UUID attackerId = game.getCombat().getAttackers().get(0);
if (equipment != null && equipment.getAttachedTo() == attackerId) {
this.getEffects().get(0).setTargetPointer(new FixedTarget(attackerId));
return true;
}
}
}
return false;