mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
ComputerUtilCombat: try to fix Bonus by Melee (at this state it doesn't know how many player it will attack if any)
This commit is contained in:
@@ -1280,6 +1280,8 @@ public class ComputerUtilCombat {
|
||||
String bonus = new String(source.getSVar(att));
|
||||
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");
|
||||
}
|
||||
power += CardFactoryUtil.xCount(source, bonus);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user