mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
fix
This commit is contained in:
parent
6fbf4c1257
commit
134266fe87
1 changed files with 7 additions and 7 deletions
|
@ -27,15 +27,14 @@
|
||||||
*/
|
*/
|
||||||
package mage.sets.magic2013;
|
package mage.sets.magic2013;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
import mage.Constants;
|
import mage.Constants;
|
||||||
import mage.Constants.CardType;
|
import mage.Constants.CardType;
|
||||||
import mage.Constants.Rarity;
|
import mage.Constants.Rarity;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.TriggeredAbilityImpl;
|
import mage.abilities.TriggeredAbilityImpl;
|
||||||
import mage.abilities.effects.common.SacrificeEffect;
|
import mage.abilities.effects.common.SacrificeEffect;
|
||||||
import mage.abilities.keyword.FlyingAbility;
|
|
||||||
import mage.abilities.keyword.ExaltedAbility;
|
import mage.abilities.keyword.ExaltedAbility;
|
||||||
|
import mage.abilities.keyword.FlyingAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.filter.common.FilterControlledPermanent;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
import mage.filter.predicate.mageobject.CardTypePredicate;
|
import mage.filter.predicate.mageobject.CardTypePredicate;
|
||||||
|
@ -43,6 +42,8 @@ import mage.game.Game;
|
||||||
import mage.game.events.GameEvent;
|
import mage.game.events.GameEvent;
|
||||||
import mage.target.targetpointer.FixedTarget;
|
import mage.target.targetpointer.FixedTarget;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author jeffwadsworth
|
* @author jeffwadsworth
|
||||||
|
@ -102,11 +103,10 @@ class NefaroxOverlordOfGrixisTriggeredAbility extends TriggeredAbilityImpl<Nefar
|
||||||
@Override
|
@Override
|
||||||
public boolean checkTrigger(GameEvent event, Game game) {
|
public boolean checkTrigger(GameEvent event, Game game) {
|
||||||
if (event.getType() == GameEvent.EventType.DECLARED_ATTACKERS && game.getActivePlayerId().equals(this.controllerId) ) {
|
if (event.getType() == GameEvent.EventType.DECLARED_ATTACKERS && game.getActivePlayerId().equals(this.controllerId) ) {
|
||||||
UUID Nefarox = this.getSourceId();
|
UUID nefarox = this.getSourceId();
|
||||||
UUID attacker = game.getCombat().getAttackers().get(0);
|
if (nefarox != null) {
|
||||||
if (Nefarox != null && attacker != null) {
|
if (game.getCombat().attacksAlone() && nefarox == game.getCombat().getAttackers().get(0)) {
|
||||||
if (game.getCombat().attacksAlone() && Nefarox == attacker) {
|
UUID defender = game.getCombat().getDefendingPlayer(nefarox);
|
||||||
UUID defender = game.getCombat().getDefendingPlayer(Nefarox);
|
|
||||||
this.getEffects().get(0).setTargetPointer(new FixedTarget(defender));
|
this.getEffects().get(0).setTargetPointer(new FixedTarget(defender));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue