mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Little fix for Kinship cards with Changeling.
This commit is contained in:
@@ -7262,7 +7262,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* sharesColorWith.
|
* sharesCreatureTypeWith.
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @param c1
|
* @param c1
|
||||||
@@ -7272,7 +7272,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
public final boolean sharesCreatureTypeWith(final Card c1) {
|
public final boolean sharesCreatureTypeWith(final Card c1) {
|
||||||
|
|
||||||
for (String type : this.getType()) {
|
for (String type : this.getType()) {
|
||||||
if (type.equals("AllCreatureTypes")) {
|
if (type.equals("AllCreatureTypes") && c1.hasACreatureType()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (CardUtil.isACreatureType(type) && c1.isType(type)) {
|
if (CardUtil.isACreatureType(type) && c1.isType(type)) {
|
||||||
@@ -7282,6 +7282,22 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* hasACreatureType.
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @return a boolean.
|
||||||
|
*/
|
||||||
|
public final boolean hasACreatureType() {
|
||||||
|
for (String type : this.getType()) {
|
||||||
|
if (CardUtil.isACreatureType(type)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* isAttacking.
|
* isAttacking.
|
||||||
|
|||||||
Reference in New Issue
Block a user