mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
Revert connectSource changes from TapTargetEffect. Not needed anymore.
This commit is contained in:
parent
705bdabafb
commit
ab0e4b0ddc
10 changed files with 10 additions and 28 deletions
|
|
@ -43,23 +43,12 @@ import mage.util.CardUtil;
|
|||
*/
|
||||
public class TapTargetEffect extends OneShotEffect {
|
||||
|
||||
private final boolean connectSource;
|
||||
|
||||
public TapTargetEffect() {
|
||||
this(null, false);
|
||||
}
|
||||
|
||||
public TapTargetEffect(boolean connectSource) {
|
||||
this(null, connectSource);
|
||||
super(Outcome.Tap);
|
||||
}
|
||||
|
||||
public TapTargetEffect(String text) {
|
||||
this(text, false);
|
||||
}
|
||||
|
||||
public TapTargetEffect(String text, boolean connectSource) {
|
||||
super(Outcome.Tap);
|
||||
this.connectSource = connectSource;
|
||||
if(text != null) {
|
||||
this.staticText = text;
|
||||
}
|
||||
|
|
@ -67,7 +56,6 @@ public class TapTargetEffect extends OneShotEffect {
|
|||
|
||||
public TapTargetEffect(final TapTargetEffect effect) {
|
||||
super(effect);
|
||||
this.connectSource = effect.connectSource;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -81,12 +69,6 @@ public class TapTargetEffect extends OneShotEffect {
|
|||
Permanent permanent = game.getPermanent(target);
|
||||
if (permanent != null) {
|
||||
permanent.tap(game);
|
||||
if(connectSource) {
|
||||
Permanent sourcePermanent = game.getPermanent(source.getSourceId());
|
||||
if(sourcePermanent != null) {
|
||||
sourcePermanent.addConnectedCard(sourcePermanent.getName(), permanent.getId());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue