mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Fixed attackers with first strike and trample not dealing any damage when all their blockers were destroyed.
This commit is contained in:
@@ -317,7 +317,7 @@ public class Combat {
|
|||||||
CardList att = new CardList(getAttackers());
|
CardList att = new CardList(getAttackers());
|
||||||
// sum unblocked attackers' power
|
// sum unblocked attackers' power
|
||||||
for (int i = 0; i < att.size(); i++) {
|
for (int i = 0; i < att.size(); i++) {
|
||||||
if (!isBlocked(att.get(i))) {
|
if (!isBlocked(att.get(i)) || (getBlockers(att.get(i)).size() == 0 && att.get(i).hasKeyword("Trample"))) {
|
||||||
|
|
||||||
int damageDealt = att.get(i).getNetCombatDamage();
|
int damageDealt = att.get(i).getNetCombatDamage();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user