Refactored more subtypes usages to enum

This commit is contained in:
Evan Kranzler 2017-09-08 11:05:58 -04:00
parent 92b999a9b4
commit 3cc178196e
29 changed files with 82 additions and 65 deletions

View file

@ -1900,9 +1900,9 @@ public abstract class GameImpl implements Game, Serializable {
Permanent attachment = getPermanent(attachmentId);
if (attachment != null
&& (attachment.isCreature()
|| !(attachment.getSubtype(this).contains("Aura")
|| attachment.getSubtype(this).contains("Equipment")
|| attachment.getSubtype(this).contains("Fortification")))) {
|| !(attachment.getSubtype(this).contains(SubType.AURA)
|| attachment.getSubtype(this).contains(SubType.EQUIPMENT)
|| attachment.getSubtype(this).contains(SubType.FORTIFICATION)))) {
if (perm.removeAttachment(attachment.getId(), this)) {
somethingHappened = true;
break;