mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
move methods from cardutil to magepermanent, cardview:getColorText now uses ObjectColor.getDescription
This commit is contained in:
parent
b3110af503
commit
27aea04820
4 changed files with 15 additions and 39 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue