mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
Fix #3414 Soul Conduit
This commit is contained in:
parent
2a136b5c90
commit
f307572a86
1 changed files with 3 additions and 4 deletions
|
|
@ -54,8 +54,7 @@ public class SoulConduit extends CardImpl {
|
||||||
// {6}, {tap}: Two target players exchange life totals.
|
// {6}, {tap}: Two target players exchange life totals.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SoulConduitEffect(), new GenericManaCost(6));
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SoulConduitEffect(), new GenericManaCost(6));
|
||||||
ability.addCost(new TapSourceCost());
|
ability.addCost(new TapSourceCost());
|
||||||
ability.addTarget(new TargetPlayer());
|
ability.addTarget(new TargetPlayer(2));
|
||||||
ability.addTarget(new TargetPlayer());
|
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -87,8 +86,8 @@ class SoulConduitEffect extends OneShotEffect {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
Player player1 = game.getPlayer(source.getFirstTarget());
|
Player player1 = game.getPlayer(source.getTargets().get(0).getTargets().get(0));
|
||||||
Player player2 = game.getPlayer(source.getTargets().get(1).getFirstTarget());
|
Player player2 = game.getPlayer(source.getTargets().get(0).getTargets().get(1));
|
||||||
if (player1 != null && player2 != null) {
|
if (player1 != null && player2 != null) {
|
||||||
int lifePlayer1 = player1.getLife();
|
int lifePlayer1 = player1.getLife();
|
||||||
int lifePlayer2 = player2.getLife();
|
int lifePlayer2 = player2.getLife();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue