mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Switch propaganda fix to EmptySa which fills in activating player.
This commit is contained in:
@@ -988,17 +988,7 @@ public class CombatUtil {
|
|||||||
|
|
||||||
// Not a great solution, but prevents a crash by passing a fake SA for Propaganda payments
|
// Not a great solution, but prevents a crash by passing a fake SA for Propaganda payments
|
||||||
// If there's a better way of handling this somewhere deeper in the code, feel free to remove
|
// If there's a better way of handling this somewhere deeper in the code, feel free to remove
|
||||||
SpellAbility fakeSA = new SpellAbility(c, attackCost) {
|
SpellAbility fakeSA = new SpellAbility.EmptySa(c, c.getController());
|
||||||
@Override
|
|
||||||
public boolean canPlay() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
boolean isFree = attackCost.getTotalMana().isZero() && attackCost.isOnlyManaCost(); // true if needless to pay
|
boolean isFree = attackCost.getTotalMana().isZero() && attackCost.isOnlyManaCost(); // true if needless to pay
|
||||||
return isFree || c.getController().getController().payManaOptional(c, attackCost, fakeSA, "Pay additional cost to declare " + c + " an attacker", ManaPaymentPurpose.DeclareAttacker);
|
return isFree || c.getController().getController().payManaOptional(c, attackCost, fakeSA, "Pay additional cost to declare " + c + " an attacker", ManaPaymentPurpose.DeclareAttacker);
|
||||||
|
|||||||
Reference in New Issue
Block a user