mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 12:22:10 -08:00
* 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:
parent
609b5af2fe
commit
a7fc5b9583
4 changed files with 14 additions and 13 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue