mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Fixed a possible NPE in checkRemoveCounterCost.
This commit is contained in:
@@ -188,7 +188,7 @@ public class CostUtil {
|
||||
if (amount == null) {
|
||||
amount = currentNum;
|
||||
}
|
||||
final double chance = percent * (currentNum / part.convertAmount());
|
||||
final double chance = percent * (currentNum / amount);
|
||||
if (chance <= CostUtil.r.nextFloat()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user