mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
[FIX] Fixes a bug where only one soldier was tapped and attacking.
This commit is contained in:
parent
db8f22111f
commit
e47b73959b
1 changed files with 6 additions and 1 deletions
|
@ -87,10 +87,15 @@ class HeroOfBladeholdEffect extends OneShotEffect<HeroOfBladeholdEffect> {
|
|||
SoldierToken token = new SoldierToken();
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
if (player != null) {
|
||||
token.putOntoBattlefield(2, game, source.getId(), source.getControllerId());
|
||||
token.putOntoBattlefield(1, game, source.getId(), source.getControllerId());
|
||||
Permanent p = game.getPermanent(token.getLastAddedToken());
|
||||
game.getCombat().declareAttacker(p.getId(), game.getCombat().getDefendingPlayer(source.getSourceId()), game);
|
||||
p.setTapped(true);
|
||||
|
||||
token.putOntoBattlefield(1, game, source.getId(), source.getControllerId());
|
||||
p = game.getPermanent(token.getLastAddedToken());
|
||||
game.getCombat().declareAttacker(p.getId(), game.getCombat().getDefendingPlayer(source.getSourceId()), game);
|
||||
p.setTapped(true);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue