mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Fix bug with assigning 0 damage to multiple blockers.
This commit is contained in:
@@ -511,7 +511,6 @@ public class AbilityFactory_ZoneAffecting {
|
|||||||
//////////////////////
|
//////////////////////
|
||||||
|
|
||||||
//NumCards - the number of cards to be discarded (may be integer or X)
|
//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
|
//Mode - the mode of discard - should match spDiscard
|
||||||
// -Random
|
// -Random
|
||||||
// -TgtChoose
|
// -TgtChoose
|
||||||
|
|||||||
@@ -121,6 +121,8 @@ public class GuiDisplay3 extends JFrame implements CardContainer, Display, NewCo
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void assignDamage(Card attacker, CardList blockers, int damage) {
|
public void assignDamage(Card attacker, CardList blockers, int damage) {
|
||||||
|
if (damage == 0)
|
||||||
|
return;
|
||||||
new Gui_MultipleBlockers3(attacker, blockers, damage, this);
|
new Gui_MultipleBlockers3(attacker, blockers, damage, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -127,6 +127,8 @@ public class GuiDisplay4 extends JFrame implements CardContainer, Display, NewCo
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void assignDamage(Card attacker, CardList blockers, int damage) {
|
public void assignDamage(Card attacker, CardList blockers, int damage) {
|
||||||
|
if (damage == 0)
|
||||||
|
return;
|
||||||
new Gui_MultipleBlockers4(attacker, blockers, damage, this);
|
new Gui_MultipleBlockers4(attacker, blockers, damage, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user