mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- Fixed xCount "Kicked" (normal kicker) interfering with "TimesKicked" (multikicker)
This commit is contained in:
@@ -478,7 +478,7 @@ public class CardFactoryUtil {
|
|||||||
value += power * 10;
|
value += power * 10;
|
||||||
}
|
}
|
||||||
if (power > 1 && c.hasKeyword("Trample")) {
|
if (power > 1 && c.hasKeyword("Trample")) {
|
||||||
value += (power -1) * 5;
|
value += (power - 1) * 5;
|
||||||
}
|
}
|
||||||
if (c.hasKeyword("Vigilance")) {
|
if (c.hasKeyword("Vigilance")) {
|
||||||
value += (power * 5) + (toughness * 5);
|
value += (power * 5) + (toughness * 5);
|
||||||
@@ -2334,7 +2334,7 @@ public class CardFactoryUtil {
|
|||||||
|
|
||||||
if (sa != null) {
|
if (sa != null) {
|
||||||
// Count$Kicked.<numHB>.<numNotHB>
|
// Count$Kicked.<numHB>.<numNotHB>
|
||||||
if (sq[0].contains("Kicked")) {
|
if (sq[0].startsWith("Kicked")) {
|
||||||
if (sa.isKicked()) {
|
if (sa.isKicked()) {
|
||||||
return CardFactoryUtil.doXMath(Integer.parseInt(sq[1]), m, c); // Kicked
|
return CardFactoryUtil.doXMath(Integer.parseInt(sq[1]), m, c); // Kicked
|
||||||
} else {
|
} else {
|
||||||
@@ -2753,8 +2753,8 @@ public class CardFactoryUtil {
|
|||||||
return CardFactoryUtil.doXMath(Integer.parseInt(sq[2]), m, c);
|
return CardFactoryUtil.doXMath(Integer.parseInt(sq[2]), m, c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (sq[0].contains("Kicked")) {
|
if (sq[0].startsWith("Kicked")) {
|
||||||
if(c.isOptionalAdditionalCostsPaid("Kicker")) {
|
if (c.isOptionalAdditionalCostsPaid("Kicker")) {
|
||||||
return CardFactoryUtil.doXMath(Integer.parseInt(sq[1]), m, c);
|
return CardFactoryUtil.doXMath(Integer.parseInt(sq[1]), m, c);
|
||||||
} else {
|
} else {
|
||||||
return CardFactoryUtil.doXMath(Integer.parseInt(sq[2]), m, c);
|
return CardFactoryUtil.doXMath(Integer.parseInt(sq[2]), m, c);
|
||||||
|
|||||||
Reference in New Issue
Block a user