mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
* Capricious Efreet - Changed first target so the ability can't be canceled anymore.
This commit is contained in:
parent
8855489c7c
commit
686dd78da8
1 changed files with 2 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ public class CapriciousEfreet extends CardImpl<CapriciousEfreet> {
|
||||||
|
|
||||||
// At the beginning of your upkeep, choose target nonland permanent you control and up to two target nonland permanents you don't control. Destroy one of them at random.
|
// At the beginning of your upkeep, choose target nonland permanent you control and up to two target nonland permanents you don't control. Destroy one of them at random.
|
||||||
Ability ability = new BeginningOfUpkeepTriggeredAbility(new CapriciousEfreetEffect(), TargetController.YOU, false);
|
Ability ability = new BeginningOfUpkeepTriggeredAbility(new CapriciousEfreetEffect(), TargetController.YOU, false);
|
||||||
ability.addTarget(new TargetPermanent(filterControlled));
|
ability.addTarget(new TargetPermanent(filterControlled, true));
|
||||||
ability.addTarget(new TargetPermanent(0, 2, filterNotControlled, false));
|
ability.addTarget(new TargetPermanent(0, 2, filterNotControlled, false));
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
@ -118,7 +118,7 @@ class CapriciousEfreetEffect extends OneShotEffect<CapriciousEfreetEffect> {
|
||||||
if (!targetPermanents.isEmpty()) {
|
if (!targetPermanents.isEmpty()) {
|
||||||
Random random = new Random();
|
Random random = new Random();
|
||||||
permanent = targetPermanents.get(random.nextInt(targetPermanents.size()));
|
permanent = targetPermanents.get(random.nextInt(targetPermanents.size()));
|
||||||
permanent.destroy(source.getId(), game, false);
|
permanent.destroy(source.getSourceId(), game, false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue