mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Card > canBeEquippedBy() update for "Equip planeswalker"
This commit is contained in:
@@ -6066,7 +6066,16 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
||||
|
||||
@Override
|
||||
protected final boolean canBeEquippedBy(final Card equip) {
|
||||
return isCreature() && isInPlay();
|
||||
if (isCreature() && isInPlay()) {
|
||||
return true;
|
||||
} else if (isPlaneswalker() && isInPlay()) {
|
||||
for (KeywordInterface inst : equip.getKeywords(Keyword.EQUIP)) {
|
||||
if (inst.getOriginal().contains("planeswalker")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user