- Fixed Pledge of Loyalty

This commit is contained in:
swordshine
2014-07-21 09:59:39 +00:00
parent 47ba659072
commit e6f4de26dc
2 changed files with 10 additions and 10 deletions

View File

@@ -8277,23 +8277,23 @@ public class Card extends GameEntity implements Comparable<Card> {
continue;
}
if (kw.equals("Protection from white")) {
if (source.isWhite() && !source.getName().contains("Pledge of Loyalty")) {
if (source.isWhite()) {
return true;
}
} else if (kw.equals("Protection from blue")) {
if (source.isBlue() && !source.getName().contains("Pledge of Loyalty")) {
if (source.isBlue()) {
return true;
}
} else if (kw.equals("Protection from black")) {
if (source.isBlack() && !source.getName().contains("Pledge of Loyalty")) {
if (source.isBlack()) {
return true;
}
} else if (kw.equals("Protection from red")) {
if (source.isRed() && !source.getName().contains("Pledge of Loyalty")) {
if (source.isRed()) {
return true;
}
} else if (kw.equals("Protection from green")) {
if (source.isGreen() && !source.getName().contains("Pledge of Loyalty")) {
if (source.isGreen()) {
return true;
}
} else if (kw.equals("Protection from creatures")) {

View File

@@ -3,11 +3,11 @@ ManaCost:1 W
Types:Enchantment Aura
K:Enchant creature
A:SP$ Attach | Cost$ 1 W | ValidTgts$ Creature | AILogic$ Pump
S:Mode$ Continuous | Affected$ Card.EnchantedBy | AddKeyword$ Protection from white | CheckSVar$ WHITE | SVarCompare$ GE1 | Description$ Enchanted creature has protection from the colors of permanents you control. This effect doesn't remove CARDNAME.
S:Mode$ Continuous | Affected$ Card.EnchantedBy | AddKeyword$ Protection from blue | CheckSVar$ BLUE | SVarCompare$ GE1
S:Mode$ Continuous | Affected$ Card.EnchantedBy | AddKeyword$ Protection from black | CheckSVar$ BLACK | SVarCompare$ GE1
S:Mode$ Continuous | Affected$ Card.EnchantedBy | AddKeyword$ Protection from red | CheckSVar$ RED | SVarCompare$ GE1
S:Mode$ Continuous | Affected$ Card.EnchantedBy | AddKeyword$ Protection from green | CheckSVar$ GREEN | SVarCompare$ GE1
S:Mode$ Continuous | Affected$ Card.EnchantedBy | AddKeyword$ Protection:Card.White:Protection from white:Card.CardUID_HostCardUID | CheckSVar$ WHITE | SVarCompare$ GE1 | Description$ Enchanted creature has protection from the colors of permanents you control. This effect doesn't remove CARDNAME.
S:Mode$ Continuous | Affected$ Card.EnchantedBy | AddKeyword$ Protection:Card.Blue:Protection from blue:Card.CardUID_HostCardUID | CheckSVar$ BLUE | SVarCompare$ GE1
S:Mode$ Continuous | Affected$ Card.EnchantedBy | AddKeyword$ Protection:Card.Black:Protection from black:Card.CardUID_HostCardUID | CheckSVar$ BLACK | SVarCompare$ GE1
S:Mode$ Continuous | Affected$ Card.EnchantedBy | AddKeyword$ Protection:Card.Red:Protection from red:Card.CardUID_HostCardUID | CheckSVar$ RED | SVarCompare$ GE1
S:Mode$ Continuous | Affected$ Card.EnchantedBy | AddKeyword$ Protection:Card.Green:Protection from green:Card.CardUID_HostCardUID | CheckSVar$ GREEN | SVarCompare$ GE1
SVar:WHITE:Count$Valid Permanent.White+YouCtrl
SVar:BLUE:Count$Valid Permanent.Blue+YouCtrl
SVar:BLACK:Count$Valid Permanent.Black+YouCtrl