mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Card: add Protection form all colors, this is better than splitting it into different colors
This commit is contained in:
@@ -6226,6 +6226,10 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
if (CardUtil.getColors(source).isMulticolor() && !colorlessDamage) {
|
if (CardUtil.getColors(source).isMulticolor() && !colorlessDamage) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
} else if (kw.equals("Protection from all colors")) {
|
||||||
|
if (!source.isColorless() && !colorlessDamage) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
} else if (kw.equals("Protection from creatures")) {
|
} else if (kw.equals("Protection from creatures")) {
|
||||||
if (source.isCreature()) {
|
if (source.isCreature()) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user