* Hushwing Gryff - Fixed a bug that the effect was wrongly implemented as replacement effect with potential to repalce other replacement effects.

This commit is contained in:
LevelX2 2014-08-09 16:40:21 +02:00
parent 609b5af2fe
commit a7fc5b9583
4 changed files with 14 additions and 13 deletions

View file

@ -636,9 +636,6 @@ public class ContinuousEffects implements Serializable {
}
public boolean replaceEvent(GameEvent event, Game game) {
if (preventedByRuleModification(event, game, false)) {
return true;
}
boolean caught = false;
HashMap<UUID, HashSet<UUID>> consumed = new HashMap<>();
do {

View file

@ -537,6 +537,9 @@ public class GameState implements Serializable, Copyable<GameState> {
}
public boolean replaceEvent(GameEvent event, Game game) {
if (effects.preventedByRuleModification(event, game, false)) {
return true;
}
return effects.replaceEvent(event, game);
}

View file

@ -39,7 +39,7 @@ import mage.game.permanent.Permanent;
*/
public class EntersTheBattlefieldEvent extends GameEvent {
private Zone fromZone;
private final Zone fromZone;
private Permanent target;
public EntersTheBattlefieldEvent(Permanent target, UUID sourceId, UUID playerId, Zone fromZone) {