mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
SacrificeEffect target required fix
This commit is contained in:
parent
c4cbc2a34e
commit
cb63b900cd
2 changed files with 24 additions and 0 deletions
23
Mage.Tests/src/test/java/org/Test.java
Normal file
23
Mage.Tests/src/test/java/org/Test.java
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
package org
|
||||
|
||||
import mage.Constants
|
||||
import mage.game.match.MatchOptions
|
||||
import mage.game.tournament.LimitedOptions
|
||||
import mage.view.SeatView
|
||||
|
||||
import java.util.ArrayList
|
||||
import java.util.Date
|
||||
import java.util.List
|
||||
import java.util.UUID
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
* User: ayratn
|
||||
* Date: 5/27/12
|
||||
* Time: 8:44 AM
|
||||
* To change this template use File | Settings | File Templates.
|
||||
*/
|
||||
public interface Test {
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -86,6 +86,7 @@ public class SacrificeEffect extends OneShotEffect<SacrificeEffect>{
|
|||
amount = Math.min(amount, realCount);
|
||||
|
||||
Target target = new TargetControlledPermanent(amount, amount, filter, false);
|
||||
target.setRequired(true);
|
||||
|
||||
//A spell or ability could have removed the only legal target this player
|
||||
//had, if thats the case this ability should fizzle.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue