[FIX] Fixes a bug where only one soldier was tapped and attacking.

This commit is contained in:
maurer.it 2011-10-02 21:10:13 -04:00
parent db8f22111f
commit e47b73959b

View file

@ -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;
}