mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Clean up
This commit is contained in:
@@ -265,15 +265,11 @@ public class HumanPlay {
|
||||
boolean mayRemovePart = true;
|
||||
|
||||
if (part instanceof CostPayLife) {
|
||||
if (!part.canPay(sourceAbility, p)) {
|
||||
final int amount = getAmountFromPart(part, source, sourceAbility);
|
||||
if (!p.canPayLife(amount)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
int amount = getAmountFromPart(part, source, sourceAbility);
|
||||
if (part.getAmount().contains("/Half")) {
|
||||
amount = Math.max(amount, 0);
|
||||
}
|
||||
|
||||
if (!p.getController().confirmPayment(part, Localizer.getInstance().getMessage("lblDoYouWantPayNLife", String.valueOf(amount)) + orString, sourceAbility)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user