mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Check for new trigger
This commit is contained in:
committed by
Hans Mackowiak
parent
23d0b05547
commit
fdd490030f
@@ -162,7 +162,6 @@ public class CardCopyService {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ========================================================
|
||||
// LKI functions
|
||||
|
||||
@@ -186,7 +185,6 @@ public class CardCopyService {
|
||||
return new CardCopyService(c).getLKICopy(cachedMap);
|
||||
}
|
||||
|
||||
|
||||
public static GameEntity getLKICopy(final GameEntity c, Map<Integer, Card> cachedMap) {
|
||||
// Ideally, we'd just convert all calls to getLKICopy to use the Map version
|
||||
if (c instanceof Card) {
|
||||
@@ -408,5 +406,4 @@ public class CardCopyService {
|
||||
return newCopy;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -242,8 +242,8 @@ public class TriggerHandler {
|
||||
for (final Trigger t : c.getTriggers()) {
|
||||
if (
|
||||
TriggerType.Exploited.equals(t.getMode()) ||
|
||||
TriggerType.Sacrificed.equals(t.getMode()) ||
|
||||
TriggerType.Destroyed.equals(t.getMode()) ||
|
||||
TriggerType.Sacrificed.equals(t.getMode()) || TriggerType.SacrificedOnce.equals(t.getMode()) ||
|
||||
((TriggerType.ChangesZone.equals(t.getMode()) || TriggerType.ChangesZoneAll.equals(t.getMode()))
|
||||
&& "Battlefield".equals(t.getParam("Origin")))) { // TODO needs additional logic in case origin=Any
|
||||
registerOneTrigger(t);
|
||||
|
||||
Reference in New Issue
Block a user