mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +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;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.Constants;
|
||||
import mage.Constants.CardType;
|
||||
import mage.Constants.Rarity;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.TriggeredAbilityImpl;
|
||||
import mage.abilities.effects.common.SacrificeEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.abilities.keyword.ExaltedAbility;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.predicate.mageobject.CardTypePredicate;
|
||||
|
@ -43,6 +42,8 @@ import mage.game.Game;
|
|||
import mage.game.events.GameEvent;
|
||||
import mage.target.targetpointer.FixedTarget;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jeffwadsworth
|
||||
|
@ -102,11 +103,10 @@ class NefaroxOverlordOfGrixisTriggeredAbility extends TriggeredAbilityImpl<Nefar
|
|||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (event.getType() == GameEvent.EventType.DECLARED_ATTACKERS && game.getActivePlayerId().equals(this.controllerId) ) {
|
||||
UUID Nefarox = this.getSourceId();
|
||||
UUID attacker = game.getCombat().getAttackers().get(0);
|
||||
if (Nefarox != null && attacker != null) {
|
||||
if (game.getCombat().attacksAlone() && Nefarox == attacker) {
|
||||
UUID defender = game.getCombat().getDefendingPlayer(Nefarox);
|
||||
UUID nefarox = this.getSourceId();
|
||||
if (nefarox != null) {
|
||||
if (game.getCombat().attacksAlone() && nefarox == game.getCombat().getAttackers().get(0)) {
|
||||
UUID defender = game.getCombat().getDefendingPlayer(nefarox);
|
||||
this.getEffects().get(0).setTargetPointer(new FixedTarget(defender));
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue