Fixed a bug of AI target selection that caused endless loops during build of test project.

This commit is contained in:
LevelX2 2015-02-27 15:04:42 +01:00
parent 96f08cad9c
commit 80d3e6bd9a
3 changed files with 18 additions and 12 deletions

View file

@ -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;