mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Added Imp's Mischief
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -5184,6 +5184,7 @@ res/cardsfolder/i/imposing_visage.txt -text
|
||||
res/cardsfolder/i/imprison_this_insolent_wretch.txt -text
|
||||
res/cardsfolder/i/impromptu_raid.txt -text
|
||||
res/cardsfolder/i/improvised_armor.txt svneol=native#text/plain
|
||||
res/cardsfolder/i/imps_mischief.txt -text
|
||||
res/cardsfolder/i/imps_taunt.txt -text
|
||||
res/cardsfolder/i/impulse.txt svneol=native#text/plain
|
||||
res/cardsfolder/i/impulsive_maneuvers.txt -text
|
||||
|
||||
10
res/cardsfolder/i/imps_mischief.txt
Normal file
10
res/cardsfolder/i/imps_mischief.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
Name:Imp's Mischief
|
||||
ManaCost:1 B
|
||||
Types:Instant
|
||||
A:SP$ ChangeTargets | Cost$ 3 U | TargetType$ Spell | ValidTgts$ Card | TargetsSingleTarget$ True | RememberTargetedCard$ True | SubAbility$ DBLoseLife | SpellDescription$ Change the target of target spell with a single target. You lose life equal to that spell's converted mana cost.
|
||||
SVar:DBLoseLife:DB$ LoseLife | Defined$ You | LifeAmount$ X | References$ X | SubAbility$ DBCleanup
|
||||
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
|
||||
SVar:X:Remembered$CardManaCost
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/imps_mischief.jpg
|
||||
Oracle:Change the target of target spell with a single target. You lose life equal to that spell's converted mana cost.
|
||||
SetInfo:PLC Rare
|
||||
@@ -19,6 +19,7 @@ public class ChangeTargetsEffect extends SpellAbilityEffect {
|
||||
@Override
|
||||
public void resolve(SpellAbility sa) {
|
||||
final List<SpellAbility> sas = getTargetSpellAbilities(sa);
|
||||
final boolean remember = sa.hasParam("RememberTargetedCard");
|
||||
|
||||
final MagicStack stack = sa.getActivatingPlayer().getGame().getStack();
|
||||
for (final SpellAbility tgtSA : sas) {
|
||||
@@ -29,6 +30,9 @@ public class ChangeTargetsEffect extends SpellAbilityEffect {
|
||||
}
|
||||
// Update targets, with a potential new target
|
||||
si.updateTarget(sa.getActivatingPlayer().getController().chooseTargets(tgtSA));
|
||||
if (remember) {
|
||||
sa.getSourceCard().addRemembered(tgtSA.getSourceCard());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user