* Aftermath - Fixed that aftermath cards were no longer castable from graveyard (fixes
package mage.players;
+import java.io.Serializable;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.util.Map.Entry;
import mage.ConditionalMana;
import mage.MageObject;
import mage.MageObjectReference;
@@ -65,11 +69,6 @@ import mage.util.GameLog;
import mage.util.RandomUtil;
import org.apache.log4j.Logger;
-import java.io.Serializable;
-import java.text.SimpleDateFormat;
-import java.util.*;
-import java.util.Map.Entry;
-
public abstract class PlayerImpl implements Player, Serializable {
private static final Logger logger = Logger.getLogger(PlayerImpl.class);
@@ -1412,9 +1411,9 @@ public abstract class PlayerImpl implements Player, Serializable {
}
}
}
- if (zone != Zone.BATTLEFIELD
- && null != game.getContinuousEffects().asThough(object.getId(), AsThoughEffectType.PLAY_FROM_NOT_OWN_HAND_ZONE, null, this.getId(), game)) {
+ if (zone != Zone.BATTLEFIELD /*&& null != game.getContinuousEffects().asThough(object.getId(), AsThoughEffectType.PLAY_FROM_NOT_OWN_HAND_ZONE, null, this.getId(), game)*/) {
for (Ability ability : candidateAbilites) {
+ if (null != game.getContinuousEffects().asThough(object.getId(), AsThoughEffectType.PLAY_FROM_NOT_OWN_HAND_ZONE, ability, this.getId(), game)) {
if (canUse || ability.getAbilityType() == AbilityType.SPECIAL_ACTION) {
ability.setControllerId(this.getId());
if (ability instanceof ActivatedAbility && ability.getZone().match(Zone.HAND)
@@ -1426,6 +1425,7 @@ public abstract class PlayerImpl implements Player, Serializable {
}
}
}
+ }
@Override
public LinkedHashMap<UUID, ActivatedAbility> getUseableActivatedAbilities(MageObject object, Zone zone, Game game) {
@@ -2566,7 +2566,8 @@ public abstract class PlayerImpl implements Player, Serializable {
* @param game
* @param winnable
* @param appliedEffects
- * @return if winnable, true if player won the toss, if not winnable, true for heads and false for tails
+ * @return if winnable, true if player won the toss, if not winnable, true
+ * for heads and false for tails
*/
@Override
public boolean flipCoin(Ability source, Game game, boolean winnable, ArrayList<UUID> appliedEffects) {
