- Little fix for Kinship cards with Changeling.

This commit is contained in:
Sloth
2011-12-05 19:03:02 +00:00
parent 2f32680a4f
commit f48e11e3d0

View File

@@ -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.