- Fix bug with assigning 0 damage to multiple blockers.

This commit is contained in:
jendave
2011-08-06 14:36:16 +00:00
parent e09b402c7a
commit 0da1f11fc5
3 changed files with 4 additions and 1 deletions

View File

@@ -511,7 +511,6 @@ public class AbilityFactory_ZoneAffecting {
//////////////////////
//NumCards - the number of cards to be discarded (may be integer or X)
//Opponent - set to True if "target opponent" - hopefully will be obsolete soon
//Mode - the mode of discard - should match spDiscard
// -Random
// -TgtChoose

View File

@@ -121,6 +121,8 @@ public class GuiDisplay3 extends JFrame implements CardContainer, Display, NewCo
}
public void assignDamage(Card attacker, CardList blockers, int damage) {
if (damage == 0)
return;
new Gui_MultipleBlockers3(attacker, blockers, damage, this);
}

View File

@@ -127,6 +127,8 @@ public class GuiDisplay4 extends JFrame implements CardContainer, Display, NewCo
}
public void assignDamage(Card attacker, CardList blockers, int damage) {
if (damage == 0)
return;
new Gui_MultipleBlockers4(attacker, blockers, damage, this);
}