mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 23:12:10 -08:00
add test for Role token not created if target has protection (#11281)
This commit is contained in:
parent
2d9f29b60e
commit
1a6bbfa873
2 changed files with 24 additions and 4 deletions
|
|
@ -39,7 +39,7 @@ public class CreateRoleAttachedTargetEffect extends OneShotEffect {
|
|||
}
|
||||
Token token = roleType.createToken(permanent, game, source);
|
||||
// The token may not be created, for instance if the creature has protection from enchantments.
|
||||
return token.getLastAddedTokenIds().size() > 0;
|
||||
return !token.getLastAddedTokenIds().isEmpty();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue