mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Tweak Investigate triggers to work with Declaration in Stone
This commit is contained in:
@@ -2215,6 +2215,7 @@ public class Player extends GameEntity implements Comparable<Player> {
|
|||||||
investigatedThisTurn++;
|
investigatedThisTurn++;
|
||||||
HashMap<String,Object> runParams = new HashMap<String,Object>();
|
HashMap<String,Object> runParams = new HashMap<String,Object>();
|
||||||
runParams.put("Player", this);
|
runParams.put("Player", this);
|
||||||
|
runParams.put("Num", investigatedThisTurn);
|
||||||
game.getTriggerHandler().runTrigger(TriggerType.Investigated, runParams,false);
|
game.getTriggerHandler().runTrigger(TriggerType.Investigated, runParams,false);
|
||||||
}
|
}
|
||||||
public final void resetInvestigatedThisTurn() {
|
public final void resetInvestigatedThisTurn() {
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ public class TriggerInvestigated extends Trigger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.mapParams.containsKey("OnlyFirst")) {
|
if (this.mapParams.containsKey("OnlyFirst")) {
|
||||||
if (p.getInvestigateNumThisTurn() != 1) {
|
if ((int) runParams2.get("Num") != 1) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user