mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
* 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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user