mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
Fixed a bug of AI target selection that caused endless loops during build of test project.
This commit is contained in:
parent
96f08cad9c
commit
80d3e6bd9a
3 changed files with 18 additions and 12 deletions
|
|
@ -52,19 +52,19 @@ public class SacrificeEffect extends OneShotEffect{
|
|||
private String preText;
|
||||
private DynamicValue count;
|
||||
|
||||
public SacrificeEffect ( FilterPermanent filter, DynamicValue count, String preText ) {
|
||||
public SacrificeEffect (FilterPermanent filter, int count, String preText ) {
|
||||
this(filter, new StaticValue(count), preText);
|
||||
}
|
||||
|
||||
public SacrificeEffect (FilterPermanent filter, DynamicValue count, String preText ) {
|
||||
super(Outcome.Sacrifice);
|
||||
this.filter = filter;
|
||||
this.count = count;
|
||||
this.preText = preText;
|
||||
setText();
|
||||
}
|
||||
|
||||
public SacrificeEffect ( FilterPermanent filter, int count, String preText ) {
|
||||
this(filter, new StaticValue(count), preText);
|
||||
}
|
||||
|
||||
public SacrificeEffect ( final SacrificeEffect effect ) {
|
||||
|
||||
public SacrificeEffect (final SacrificeEffect effect ) {
|
||||
super(effect);
|
||||
this.filter = effect.filter;
|
||||
this.count = effect.count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue