- Fixed Flame Rift and Kagemaro, First to Suffer.

This commit is contained in:
Sloth
2011-08-23 12:09:07 +00:00
parent 74c46e6b87
commit 0de6c3a01a
2 changed files with 12 additions and 7 deletions

View File

@@ -943,14 +943,19 @@ public class AbilityFactory_DealDamage {
targetPlayer = tgt.getTargetPlayers().get(0);
String players = "";
CardList list = new CardList();
if (params.containsKey("ValidPlayers"))
if (params.containsKey("ValidPlayers")) {
players = params.get("ValidPlayers");
}
if (params.containsKey("ValidCards")) {
list = AllZoneUtil.getCardsInPlay();
}
CardList list = AllZoneUtil.getCardsInPlay();
if (targetPlayer != null)
if (targetPlayer != null) {
list = list.getController(targetPlayer);
}
list = AbilityFactory.filterListByType(list, params.get("ValidCards"), sa);
@@ -961,9 +966,9 @@ public class AbilityFactory_DealDamage {
p.addDamage(dmg, card);
} else if (players.equals("EachOpponent")) {
for (Player p : AllZoneUtil.getOpponents(card.getController())) p.addDamage(dmg, card);
} else if (players.equals("Self"))
} else if (players.equals("Self")) {
card.getController().addDamage(dmg, card);
else if (players.equals("Targeted"))
} else if (players.equals("Targeted"))
targetPlayer.addDamage(dmg, card);
}
}