forked from External/mage
change some size() comparisons, to isEmpty()
This commit is contained in:
parent
5ba206111a
commit
eb0cfc94f8
23 changed files with 35 additions and 36 deletions
|
|
@ -70,7 +70,7 @@ enum FaceOfDivinityCondition implements Condition {
|
|||
Permanent currentAura = game.getPermanent(source.getSourceId());
|
||||
if (currentAura != null && currentAura.getAttachedTo() != null) {
|
||||
Permanent permanent = game.getPermanent(currentAura.getAttachedTo());
|
||||
if (permanent != null && permanent.getAttachments().size() > 0) {
|
||||
if (permanent != null && !permanent.getAttachments().isEmpty()) {
|
||||
for (UUID id : permanent.getAttachments()) {
|
||||
Permanent otherAura = game.getPermanent(id);
|
||||
if (otherAura != null && !otherAura.getId().equals(currentAura.getId())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue