mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Fixed Diregraf Escort.
This commit is contained in:
@@ -3,6 +3,6 @@ ManaCost:G
|
||||
Types:Creature Human Cleric
|
||||
PT:1/1
|
||||
K:Soulbond
|
||||
S:Mode$ Continuous | Affected$ Creature.PairedWith,Creature.Self+Paired | AddKeyword$ Protection from Zombies | Description$ As long as CARDNAME is paired with another creature, both creatures have protection from Zombies.
|
||||
S:Mode$ Continuous | Affected$ Creature.PairedWith,Creature.Self+Paired | AddKeyword$ Protection:Zombie:Protection from Zombies | Description$ As long as CARDNAME is paired with another creature, both creatures have protection from Zombies.
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/diregraf_escort.jpg
|
||||
Oracle:Soulbond (You may pair this creature with another unpaired creature when either enters the battlefield. They remain paired for as long as you control both of them.)\nAs long as Diregraf Escort is paired with another creature, both creatures have protection from Zombies.
|
||||
@@ -8005,6 +8005,15 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
}
|
||||
} else if (kw.equals("Protection from everything")) {
|
||||
return true;
|
||||
} else if (kw.startsWith("Protection:")) { // uses isValid
|
||||
final String characteristic = kw.split(":")[1];
|
||||
final String[] characteristics = characteristic.split(",");
|
||||
if (source.isValid(characteristics, this.getController(), this)
|
||||
&& !source.getName().contains("Flickering Ward") && !source.getName().contains("Pentarch Ward")
|
||||
&& !source.getName().contains("Cho-Manno's Blessing") && !source.getName().contains("Floating Shield")
|
||||
&& !source.getName().contains("Ward of Lights")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (kw.equals("Protection from colored spells")
|
||||
@@ -8030,17 +8039,6 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (kw.startsWith("Protection:")) { // uses isValid
|
||||
final String characteristic = kw.split(":")[1];
|
||||
final String[] characteristics = characteristic.split(",");
|
||||
if (source.isValid(characteristics, this.getController(), this)
|
||||
&& !source.getName().contains("Flickering Ward") && !source.getName().contains("Pentarch Ward")
|
||||
&& !source.getName().contains("Cho-Manno's Blessing") && !source.getName().contains("Floating Shield")
|
||||
&& !source.getName().contains("Ward of Lights")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user