mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +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()) {
|
if (!a.getCreatureGotBlockedThisCombat()) {
|
||||||
final int blockers = AllZone.getCombat().getBlockers(a).size();
|
final int blockers = AllZone.getCombat().getBlockers(a).size();
|
||||||
runParams.put("NumBlockers", blockers);
|
runParams.put("NumBlockers", blockers);
|
||||||
|
runParams.put("NumBlockersMinus1", blockers - 1);
|
||||||
AllZone.getTriggerHandler().runTrigger("AttackerBlocked", runParams);
|
AllZone.getTriggerHandler().runTrigger("AttackerBlocked", runParams);
|
||||||
|
|
||||||
//Bushido
|
//Bushido
|
||||||
|
|||||||
@@ -60,5 +60,6 @@ public class Trigger_AttackerBlocked extends Trigger {
|
|||||||
sa.setTriggeringObject("Attacker", runParams.get("Attacker"));
|
sa.setTriggeringObject("Attacker", runParams.get("Attacker"));
|
||||||
sa.setTriggeringObject("Blocker", runParams.get("Blocker"));
|
sa.setTriggeringObject("Blocker", runParams.get("Blocker"));
|
||||||
sa.setTriggeringObject("NumBlockers", runParams.get("NumBlockers"));
|
sa.setTriggeringObject("NumBlockers", runParams.get("NumBlockers"));
|
||||||
|
sa.setTriggeringObject("NumBlockersMinus1", runParams.get("NumBlockersMinus1"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user