mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Fixed Crew Ability
This commit is contained in:
parent
b6f71f3621
commit
935a51c4da
1 changed files with 4 additions and 1 deletions
|
@ -122,7 +122,10 @@ class CrewCost extends CostImpl {
|
|||
public boolean canPay(Ability ability, UUID sourceId, UUID controllerId, Game game) {
|
||||
int sumPower = 0;
|
||||
for (Permanent permanent : game.getBattlefield().getAllActivePermanents(filter, controllerId, game)) {
|
||||
sumPower += permanent.getPower().getValue();
|
||||
int powerToAdd = permanent.getPower().getValue();
|
||||
if (powerToAdd > 0) {
|
||||
sumPower += powerToAdd;
|
||||
}
|
||||
if (sumPower >= value) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue