mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
* Sigil of Valor - Fixed wrong trigger condition.
This commit is contained in:
parent
b1f5b15f2d
commit
c6dd29ef20
1 changed files with 7 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue