Skip to content

Commit ab70ec0

Browse files
tool4EvErtool4EvEr
authored andcommitted
Fix Gilraen
1 parent 29a0c3d commit ab70ec0

File tree

4 files changed

+6
-28
lines changed

4 files changed

+6
-28
lines changed

forge-game/src/main/java/forge/game/ability/effects/ChangeZoneAllEffect.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,6 @@ public void resolve(SpellAbility sa) {
122122

123123
if (destination == ZoneType.Battlefield) {
124124
moveParams.put(AbilityKey.SimultaneousETB, cards);
125-
if (sa.hasAdditionalAbility("AnimateSubAbility")) {
126-
// need LKI before Animate does apply
127-
moveParams.put(AbilityKey.CardLKI, CardCopyService.getLKICopy(c));
128-
129-
final SpellAbility animate = sa.getAdditionalAbility("AnimateSubAbility");
130-
source.addRemembered(c);
131-
AbilityUtils.resolve(animate);
132-
source.removeRemembered(c);
133-
animate.setSVar("unanimateTimestamp", String.valueOf(game.getTimestamp()));
134-
}
135125
if (sa.hasParam("Tapped")) {
136126
c.setTapped(true);
137127
}

forge-game/src/main/java/forge/game/ability/effects/ChangeZoneEffect.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,12 +599,13 @@ private void changeKnownOriginResolve(final SpellAbility sa) {
599599
}
600600
}
601601
if (sa.hasParam("WithCountersType")) {
602-
CounterType cType = CounterType.getType(sa.getParam("WithCountersType"));
603602
int cAmount = AbilityUtils.calculateAmount(hostCard, sa.getParamOrDefault("WithCountersAmount", "1"), sa);
604-
605603
GameEntityCounterTable table = new GameEntityCounterTable();
606-
table.put(activator, gameCard, cType, cAmount);
607604
moveParams.put(AbilityKey.CounterTable, table);
605+
for (String type : sa.getParam("WithCountersType").split(",")) {
606+
CounterType cType = CounterType.getType(type);
607+
table.put(activator, gameCard, cType, cAmount);
608+
}
608609
} else if (sa.hasParam("WithNotedCounters")) {
609610
CountersNoteEffect.loadCounters(gameCard, hostCard, chooser, sa, moveParams);
610611
}

forge-game/src/main/java/forge/game/ability/effects/DigEffect.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -399,16 +399,6 @@ else if (!sa.hasParam("NoLooking")) {
399399
moveParams.put(AbilityKey.CounterTable, table);
400400
}
401401
}
402-
if (sa.hasAdditionalAbility("AnimateSubAbility")) {
403-
// need LKI before Animate does apply
404-
moveParams.put(AbilityKey.CardLKI, CardCopyService.getLKICopy(c));
405-
406-
final SpellAbility animate = sa.getAdditionalAbility("AnimateSubAbility");
407-
host.addRemembered(c);
408-
AbilityUtils.resolve(animate);
409-
host.removeRemembered(c);
410-
animate.setSVar("unanimateTimestamp", String.valueOf(game.getTimestamp()));
411-
}
412402
c = game.getAction().moveTo(c.getController().getZone(destZone1), c, sa, moveParams);
413403
if (destZone1.equals(ZoneType.Battlefield)) {
414404
if (addToCombat(c, sa, "Attacking", "Blocking")) {

forge-gui/res/cardsfolder/g/gilraen_dunedain_protector.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@ Name:Gilraen, Dúnedain Protector
22
ManaCost:2 W
33
Types:Legendary Creature Human Noble
44
PT:2/3
5-
A:AB$ ChangeZone | Cost$ 2 T | ValidTgts$ Creature.Other+YouCtrl | RememberChanged$ True | Origin$ Battlefield | Destination$ Exile | TgtPrompt$ Select another target creature you control | SubAbility$ DBReturn | SpellDescription$ Exile another target creature you control. You may return that card to the battlefield under its owner's control. If you don't, at the beginning of the next end step, return that card to the battlefield under its owner's control with a vigilance counter and a lifelink counter on it.
5+
A:AB$ ChangeZone | Cost$ 2 T | ValidTgts$ Creature.Other+YouCtrl | RememberChanged$ True | Origin$ Battlefield | Destination$ Exile | TgtPrompt$ Select another target creature you control | SubAbility$ DBReturn | SpellDescription$ Exile another target creature you control. You may return that card to the battlefield under its owner's control.
66
SVar:DBReturn:DB$ ChangeZone | Defined$ Remembered | Origin$ All | Optional$ True | ForgetChanged$ True | Destination$ Battlefield | SubAbility$ DBDelayedTrigger
77
SVar:DBDelayedTrigger:DB$ DelayedTrigger | RememberObjects$ Remembered | ConditionDefined$ Remembered | ConditionPresent$ Card | Mode$ Phase | Phase$ End Of Turn | Execute$ TrigReturn | SubAbility$ DBCleanup | SpellDescription$ If you don't, at the beginning of the next end step, return that card to the battlefield under its owner's control with a vigilance counter and a lifelink counter on it.
8-
SVar:TrigReturn:DB$ ChangeZone | Defined$ DelayTriggerRemembered | Origin$ Exile | Destination$ Battlefield | AnimateSubAbility$ DBConditionEffect
9-
SVar:DBConditionEffect:DB$ Effect | RememberObjects$ RememberedLKI | ReplacementEffects$ ETBCounters
10-
SVar:ETBCounters:Event$ Moved | ReplacementResult$ Updated | Destination$ Battlefield | ValidCard$ Card.IsRemembered | ReplaceWith$ AddExtraCounter | Description$ return that card to the battlefield under its owner's control with a vigilance counter and a lifelink counter on it.
11-
SVar:AddExtraCounter:DB$ PutCounter | ETB$ True | Defined$ ReplacedCard | CounterTypes$ Vigilance,Lifelink
8+
SVar:TrigReturn:DB$ ChangeZone | Defined$ DelayTriggerRemembered | Origin$ Exile | Destination$ Battlefield | WithCountersType$ Vigilance,Lifelink
129
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
1310
DeckHas:Ability$Counters|LifeGain
1411
Oracle:{2}, {T}: Exile another target creature you control. You may return that card to the battlefield under its owner's control. If you don't, at the beginning of the next end step, return that card to the battlefield under its owner's control with a vigilance counter and a lifelink counter on it.

0 commit comments

Comments
 (0)