mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Hideaway without Remembering
This commit is contained in:
@@ -89,11 +89,11 @@ public class PlayAi extends SpellAbilityAi {
|
||||
}
|
||||
}
|
||||
|
||||
if (source != null && source.hasKeyword(Keyword.HIDEAWAY) && source.hasRemembered()) {
|
||||
if (source != null && source.hasKeyword(Keyword.HIDEAWAY) && source.hasExiledCard()) {
|
||||
// AI is not very good at playing non-permanent spells this way, at least yet
|
||||
// (might be possible to enable it for Sorceries in Main1/Main2 if target is available,
|
||||
// but definitely not for most Instants)
|
||||
Card rem = (Card) source.getFirstRemembered();
|
||||
Card rem = source.getExiledCards().getFirst();
|
||||
CardTypeView t = rem.getState(CardStateName.Original).getType();
|
||||
|
||||
return t.isPermanent() && !t.isLand();
|
||||
|
||||
@@ -332,6 +332,8 @@ public class GameCopier {
|
||||
final Card newCard = createCardCopy(newGame, owner, c);
|
||||
cardMap.put(c, newCard);
|
||||
|
||||
// TODO ExiledWith
|
||||
|
||||
Player zoneOwner = owner;
|
||||
// everything the CreatureEvaluator checks must be set here
|
||||
if (zone == ZoneType.Battlefield) {
|
||||
|
||||
Reference in New Issue
Block a user