move methods from cardutil to magepermanent, cardview:getColorText now uses ObjectColor.getDescription

This commit is contained in:
igoudt 2017-04-26 09:29:38 +02:00
parent b3110af503
commit 27aea04820
4 changed files with 15 additions and 39 deletions

View file

@ -151,7 +151,7 @@ public class CardPluginImpl implements CardPlugin {
outerLoop:
//
for (MagePermanent permanent : permanents) {
if (!CardUtil.isLand(permanent) || CardUtil.isCreature(permanent)) {
if (!permanent.isLand() || permanent.isCreature()) {
continue;
}
@ -418,11 +418,11 @@ public class CardPluginImpl implements CardPlugin {
public boolean isType(MagePermanent card) {
switch (this) {
case land:
return CardUtil.isLand(card);
return card.isLand();
case creature:
return CardUtil.isCreature(card);
return card.isCreature();
case other:
return !CardUtil.isLand(card) && !CardUtil.isCreature(card);
return !card.isLand() && !card.isCreature();
case attached:
return card.getOriginalPermanent().isAttachedToPermanent();
default: