forked from External/mage
change subtype.contains() to hasSubtype()
This commit is contained in:
parent
a316fe508f
commit
b12b0e29b8
94 changed files with 250 additions and 277 deletions
|
|
@ -929,7 +929,7 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
|
|||
@Override
|
||||
public boolean cantBeAttachedBy(MageObject source, Game game) {
|
||||
for (ProtectionAbility ability : this.getAbilities(game).getProtectionAbilities()) {
|
||||
if (!(source.getSubtype(game).contains(SubType.AURA)
|
||||
if (!(source.hasSubtype(SubType.AURA, game)
|
||||
&& !ability.removesAuras())
|
||||
&& !source.getId().equals(ability.getAuraIdNotToBeRemoved())
|
||||
&& !ability.canTarget(source, game)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue