mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 20:29:19 -08:00
* Fixed some triggered ability that look for cards but have to ignore copied cards.
This commit is contained in:
parent
7c48d415ea
commit
b08e2eda17
5 changed files with 5 additions and 5 deletions
|
|
@ -149,7 +149,7 @@ class TamiyoTheMoonSageTriggeredAbility extends TriggeredAbilityImpl {
|
|||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (event.getType() == GameEvent.EventType.ZONE_CHANGE && ((ZoneChangeEvent) event).getToZone() == Zone.GRAVEYARD) {
|
||||
Card card = game.getCard(event.getTargetId());
|
||||
if (card != null && card.getOwnerId().equals(this.getControllerId())) {
|
||||
if (card != null && !card.isCopy() && card.getOwnerId().equals(this.getControllerId())) {
|
||||
this.getEffects().get(0).setTargetPointer(new FixedTarget(card.getId()));
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ class VulturousZombieTriggeredAbility extends TriggeredAbilityImpl {
|
|||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (event.getType() == GameEvent.EventType.ZONE_CHANGE && ((ZoneChangeEvent) event).getToZone() == Zone.GRAVEYARD) {
|
||||
Card card = game.getCard(event.getTargetId());
|
||||
if (card != null
|
||||
if (card != null && !card.isCopy()
|
||||
&& game.getOpponents(controllerId).contains(card.getOwnerId())) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ class CardPutIntoOpponentGraveThisTurn extends DelayedTriggeredAbility {
|
|||
ZoneChangeEvent zEvent = (ZoneChangeEvent) event;
|
||||
UUID cardId = event.getTargetId();
|
||||
Card card = game.getCard(cardId);
|
||||
if (zEvent.getToZone() == Zone.GRAVEYARD
|
||||
if (zEvent.getToZone() == Zone.GRAVEYARD && !card.isCopy()
|
||||
&& game.getOpponents(controllerId).contains(card.getOwnerId())) {
|
||||
for (Effect effect : this.getEffects()) {
|
||||
effect.setTargetPointer(new FixedTarget(card.getOwnerId()));
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ class BloodchiefAscensionTriggeredAbility extends TriggeredAbilityImpl {
|
|||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (event.getType() == GameEvent.EventType.ZONE_CHANGE && ((ZoneChangeEvent) event).getToZone() == Zone.GRAVEYARD) {
|
||||
Card card = game.getCard(event.getTargetId());
|
||||
if (card != null && game.getOpponents(controllerId).contains(card.getOwnerId())) {
|
||||
if (card != null && !card.isCopy() && game.getOpponents(controllerId).contains(card.getOwnerId())) {
|
||||
this.getEffects().get(0).setTargetPointer(new FixedTarget(card.getOwnerId()));
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ class QuestForAncientSecretsTriggeredAbility extends TriggeredAbilityImpl {
|
|||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (event.getType() == GameEvent.EventType.ZONE_CHANGE && ((ZoneChangeEvent) event).getToZone() == Zone.GRAVEYARD) {
|
||||
Card card = game.getCard(event.getTargetId());
|
||||
if (card != null && card.getOwnerId().equals(this.getControllerId())) {
|
||||
if (card != null && !card.isCopy() && card.getOwnerId().equals(this.getControllerId())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue