- DOM: Added Firesong and Sunspeaker

This commit is contained in:
swordshine
2018-03-11 18:23:47 +08:00
parent d8b31ec4bc
commit b560df49a3
3 changed files with 16 additions and 0 deletions

View File

@@ -405,6 +405,7 @@ public class Player extends GameEntity implements Comparable<Player> {
final Map<String, Object> runParams = Maps.newHashMap();
runParams.put("Player", this);
runParams.put("LifeAmount", lifeGain);
runParams.put("Source", source);
game.getTriggerHandler().runTrigger(TriggerType.LifeGained, runParams, false);
game.fireEvent(new GameEventPlayerLivesChanged(this, oldLife, life));

View File

@@ -55,6 +55,12 @@ public class TriggerLifeGained extends Trigger {
return false;
}
}
if (this.mapParams.containsKey("ValidSource")) {
if (!matchesValid(runParams2.get("Source"), this.mapParams.get("ValidSource").split(","),
this.getHostCard())) {
return false;
}
}
return true;
}