huge rework on subtypes (#3668)

* huge rework on subtypes

* update for coat of arms

* fix test
This commit is contained in:
ingmargoudt 2017-07-16 23:57:39 +02:00 committed by Jeff Wadsworth
parent 81fb4b5d92
commit 09f0c9ad97
185 changed files with 1068 additions and 906 deletions

View file

@ -32,6 +32,7 @@ import mage.MageInt;
import mage.MageObject;
import mage.abilities.StaticAbility;
import mage.abilities.keyword.FlyingAbility;
import mage.constants.SubType;
import mage.constants.Zone;
import mage.game.Game;
@ -71,7 +72,7 @@ class CantBeEnchantedAbility extends StaticAbility {
public boolean canTarget(MageObject source, Game game) {
if (source.isEnchantment()
&& source.hasSubtype("Aura", game)) {
&& source.hasSubtype(SubType.AURA, game)) {
return false;
}
return true;