forked from External/mage
Merge origin/master
Conflicts: Mage.Sets/src/mage/sets/RivalsOfIxalan.java
This commit is contained in:
commit
f95b0e6c0a
75 changed files with 1633 additions and 216 deletions
|
|
@ -53,6 +53,7 @@ import mage.cards.Card;
|
|||
import mage.cards.Cards;
|
||||
import mage.cards.CardsImpl;
|
||||
import mage.cards.SplitCard;
|
||||
import mage.cards.SplitCardHalf;
|
||||
import mage.cards.decks.Deck;
|
||||
import mage.choices.ChoiceImpl;
|
||||
import mage.constants.*;
|
||||
|
|
@ -1341,7 +1342,11 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (zone != Zone.BATTLEFIELD && game.getContinuousEffects().asThough(object.getId(), AsThoughEffectType.PLAY_FROM_NOT_OWN_HAND_ZONE, this.getId(), game)) {
|
||||
UUID sourceId = object.getId();
|
||||
if (object instanceof SplitCardHalf) {
|
||||
sourceId = ((SplitCardHalf) object).getParentCard().getId();
|
||||
}
|
||||
if (zone != Zone.BATTLEFIELD && game.getContinuousEffects().asThough(sourceId, AsThoughEffectType.PLAY_FROM_NOT_OWN_HAND_ZONE, playerId, game)) {
|
||||
for (Ability ability : candidateAbilites) {
|
||||
if (canUse || ability.getAbilityType() == AbilityType.SPECIAL_ACTION) {
|
||||
ability.setControllerId(this.getId());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue