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