forked from External/mage
fixes + optimizations + updates to monte carlo ai
This commit is contained in:
parent
23616432e4
commit
7fce6c552d
16 changed files with 312 additions and 228 deletions
|
|
@ -374,9 +374,14 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
|
|||
|
||||
@Override
|
||||
public void addCost(Cost cost) {
|
||||
if (cost != null) {
|
||||
this.costs.add(cost);
|
||||
}
|
||||
if (cost != null) {
|
||||
if (cost instanceof ManaCost) {
|
||||
this.addManaCost((ManaCost)cost);
|
||||
}
|
||||
else {
|
||||
this.costs.add(cost);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue