mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
* Glarecaster - Fixed that its redirect ability allows for multiple redirects not only if damage is dealt at the same time (fixes #5368).
This commit is contained in:
parent
9e41122813
commit
fde0ba284a
2 changed files with 50 additions and 1 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.abilities.effects;
|
||||
|
||||
import mage.MageObject;
|
||||
|
|
@ -47,6 +46,7 @@ public abstract class RedirectionEffect extends ReplacementEffectImpl {
|
|||
this.redirectTarget = effect.redirectTarget;
|
||||
this.amountToRedirect = effect.amountToRedirect;
|
||||
this.usageType = effect.usageType;
|
||||
this.applyEffectsCounter = effect.applyEffectsCounter;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -80,6 +80,7 @@ public abstract class RedirectionEffect extends ReplacementEffectImpl {
|
|||
if (applyEffectsCounter > 0) {
|
||||
if (applyEffectsCounter < game.getState().getApplyEffectsCounter()) {
|
||||
this.discard();
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
applyEffectsCounter = game.getState().getApplyEffectsCounter();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue