mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
Fix Twenty-Toed Toad
This commit is contained in:
parent
1cd28fbfdb
commit
f64428ac4b
1 changed files with 2 additions and 6 deletions
|
|
@ -65,11 +65,7 @@ enum TwentyToedToadCondition implements Condition {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
Permanent permanent = game.getPermanent(source.getSourceId());
|
||||
if (player == null || permanent == null) {
|
||||
return false;
|
||||
}
|
||||
return permanent.getCounters(game).getTotalCount() >= 20
|
||||
|| player.getHand().size() >= 20;
|
||||
Permanent permanent = source.getSourcePermanentIfItStillExists(game);
|
||||
return player != null && (player.getHand().size() >= 20 || (permanent != null && permanent.getCounters(game).getTotalCount() >= 20));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue