mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
Implement Aetherflame Wall
This commit is contained in:
parent
6c000d9177
commit
1f7c7e90b2
5 changed files with 94 additions and 59 deletions
|
|
@ -0,0 +1,38 @@
|
|||
package mage.abilities.effects.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.AsThoughEffectImpl;
|
||||
import mage.constants.AsThoughEffectType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Outcome;
|
||||
import mage.game.Game;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public class CanBlockAsThoughtItHadShadowEffect extends AsThoughEffectImpl {
|
||||
|
||||
public CanBlockAsThoughtItHadShadowEffect(Duration duration) {
|
||||
super(AsThoughEffectType.BLOCK_SHADOW, duration, Outcome.Benefit);
|
||||
staticText = "{this} can block creatures with shadow as though {this} had shadow";
|
||||
}
|
||||
|
||||
public CanBlockAsThoughtItHadShadowEffect(final CanBlockAsThoughtItHadShadowEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CanBlockAsThoughtItHadShadowEffect copy() {
|
||||
return new CanBlockAsThoughtItHadShadowEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean applies(UUID sourceId, Ability source, UUID affectedControllerId, Game game) {
|
||||
return sourceId.equals(source.getSourceId());
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue