mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Update CardFactoryUtil.java
This commit is contained in:
@@ -819,7 +819,19 @@ public class CardFactoryUtil {
|
|||||||
inst.addTrigger(trigger);
|
inst.addTrigger(trigger);
|
||||||
} else if (keyword.equals("Ascend")) {
|
} else if (keyword.equals("Ascend")) {
|
||||||
// Ascend trigger only for Permanent
|
// Ascend trigger only for Permanent
|
||||||
if (card.isPermanent()) {
|
if (card.isPlane()) { // Ascend trigger for The Golden City of Orazca
|
||||||
|
final String trig = "Mode$ Always | TriggerZones$ Command | Secondary$ True"
|
||||||
|
+ " | Static$ True | Blessing$ False | IsPresent$ Permanent.YouCtrl | PresentCompare$ GE10 "
|
||||||
|
+ " | TriggerDescription$ Ascend (" + inst.getReminderText() + ")";
|
||||||
|
|
||||||
|
final String effect = "DB$ Ascend | Defined$ You";
|
||||||
|
|
||||||
|
final Trigger trigger = TriggerHandler.parseTrigger(trig, card, intrinsic);
|
||||||
|
trigger.setOverridingAbility(AbilityFactory.getAbility(effect, card));
|
||||||
|
|
||||||
|
inst.addTrigger(trigger);
|
||||||
|
|
||||||
|
} else if (card.isPermanent()) {
|
||||||
final String trig = "Mode$ Always | TriggerZones$ Battlefield | Secondary$ True"
|
final String trig = "Mode$ Always | TriggerZones$ Battlefield | Secondary$ True"
|
||||||
+ " | Static$ True | Blessing$ False | IsPresent$ Permanent.YouCtrl | PresentCompare$ GE10 "
|
+ " | Static$ True | Blessing$ False | IsPresent$ Permanent.YouCtrl | PresentCompare$ GE10 "
|
||||||
+ " | TriggerDescription$ Ascend (" + inst.getReminderText() + ")";
|
+ " | TriggerDescription$ Ascend (" + inst.getReminderText() + ")";
|
||||||
|
|||||||
Reference in New Issue
Block a user