mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Deathless Knight - Fixed triggered ability.
This commit is contained in:
parent
6470fc85ef
commit
1c2ac9a90d
1 changed files with 3 additions and 5 deletions
|
@ -1,5 +1,6 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.TriggeredAbilityImpl;
|
||||
import mage.abilities.effects.common.ReturnSourceFromGraveyardToHandEffect;
|
||||
|
@ -12,8 +13,6 @@ import mage.constants.Zone;
|
|||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
|
@ -49,7 +48,7 @@ class DeathlessKnightTriggeredAbility extends TriggeredAbilityImpl {
|
|||
private boolean triggeredOnce = false;
|
||||
|
||||
DeathlessKnightTriggeredAbility() {
|
||||
super(Zone.ALL, new ReturnSourceFromGraveyardToHandEffect(), false);
|
||||
super(Zone.GRAVEYARD, new ReturnSourceFromGraveyardToHandEffect(), false);
|
||||
}
|
||||
|
||||
private DeathlessKnightTriggeredAbility(final DeathlessKnightTriggeredAbility ability) {
|
||||
|
@ -70,8 +69,7 @@ class DeathlessKnightTriggeredAbility extends TriggeredAbilityImpl {
|
|||
return false;
|
||||
}
|
||||
if (event.getType() != GameEvent.EventType.GAINED_LIFE
|
||||
|| !event.getPlayerId().equals(controllerId)
|
||||
|| game.getState().getZone(this.getSourceId()) == Zone.GRAVEYARD) {
|
||||
|| !event.getPlayerId().equals(getControllerId())) {
|
||||
return false;
|
||||
}
|
||||
if (triggeredOnce) {
|
||||
|
|
Loading…
Reference in a new issue