mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
I had to add a NumBlockersMinus1 param to the AttackerBlocked trigger due to TriggerCount not working in a second level of xMath
This commit is contained in:
@@ -1869,6 +1869,7 @@ public class CombatUtil {
|
||||
if (!a.getCreatureGotBlockedThisCombat()) {
|
||||
final int blockers = AllZone.getCombat().getBlockers(a).size();
|
||||
runParams.put("NumBlockers", blockers);
|
||||
runParams.put("NumBlockersMinus1", blockers - 1);
|
||||
AllZone.getTriggerHandler().runTrigger("AttackerBlocked", runParams);
|
||||
|
||||
//Bushido
|
||||
|
||||
@@ -60,5 +60,6 @@ public class Trigger_AttackerBlocked extends Trigger {
|
||||
sa.setTriggeringObject("Attacker", runParams.get("Attacker"));
|
||||
sa.setTriggeringObject("Blocker", runParams.get("Blocker"));
|
||||
sa.setTriggeringObject("NumBlockers", runParams.get("NumBlockers"));
|
||||
sa.setTriggeringObject("NumBlockersMinus1", runParams.get("NumBlockersMinus1"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user