* Costs: removed isUndoable, isReusable backing fields, appropiate values are returned by method overloads in classes

* Costs: joined all CostGainLife implementations. Syntax is: GainLife<LifeAmount/Player.Selector/[cntPlayers|*]> asterisk in last parameter means "all players".
* Changed a lot of methods to pass GameState as a parameter rather than get it from Singletons.*
This commit is contained in:
Maxmtg
2013-01-22 06:58:11 +00:00
parent 4ca6d8cbdf
commit ab95f36861
47 changed files with 537 additions and 785 deletions

View File

@@ -109,7 +109,7 @@ public class CostUtil {
for (final CostPart part : cost.getCostParts()) {
if (part instanceof CostSacrifice) {
final CostSacrifice sac = (CostSacrifice) part;
if (sac.getThis() && source.isCreature()) {
if (sac.isTargetingThis() && source.isCreature()) {
return false;
}
final String type = sac.getType();
@@ -257,7 +257,7 @@ public class CostUtil {
final CounterType type = remCounter.getCounter();
final double percent = type.name().equals("P1P1") ? p1p1Percent : otherPercent;
final int currentNum = source.getCounters(type);
if (!part.getThis()) {
if (!part.isTargetingThis()) {
if (type.name().equals("P1P1")) {
return false;
}