mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
ComputerUtilCombat: add Melee boost for toughness too
This commit is contained in:
@@ -1483,6 +1483,8 @@ public class ComputerUtilCombat {
|
||||
String bonus = new String(source.getSVar(def));
|
||||
if (bonus.contains("TriggerCount$NumBlockers")) {
|
||||
bonus = bonus.replace("TriggerCount$NumBlockers", "Number$1");
|
||||
} else if (bonus.contains("TriggeredPlayersDefenders$Amount")) { // for Melee
|
||||
bonus = bonus.replace("TriggeredPlayersDefenders$Amount", "Number$1");
|
||||
}
|
||||
toughness += CardFactoryUtil.xCount(source, bonus);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user