- Added the keyword "CARDNAME can't be blocked by more than one creature."

- Added Charging Rhino.
This commit is contained in:
jendave
2011-08-06 11:14:44 +00:00
parent a6b521bb3e
commit deb9d03da8
4 changed files with 15 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -788,6 +788,7 @@ res/cardsfolder/char_rumbler.txt -text svneol=native#text/plain
res/cardsfolder/charcoal_diamond.txt -text svneol=native#text/plain
res/cardsfolder/charging_bandits.txt -text svneol=native#text/plain
res/cardsfolder/charging_paladin.txt -text svneol=native#text/plain
res/cardsfolder/charging_rhino.txt -text svneol=native#text/plain
res/cardsfolder/charging_slateback.txt -text svneol=native#text/plain
res/cardsfolder/charging_troll.txt -text svneol=native#text/plain
res/cardsfolder/chartooth_cougar.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,9 @@
Name:Charging Rhino
ManaCost:3 G G
Types:Creature Rhino
Text:no text
PT:4/4
K:CARDNAME can't be blocked by more than one creature.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/charging_rhino.jpg
End

View File

@@ -2431,6 +2431,8 @@ public class Card extends MyObservable {
else if (Property.startsWith("blocking")) { if(!isBlocking()) return false;}
else if (Property.startsWith("notblocking")) { if(isBlocking()) return false;}
else if (Property.startsWith("blocked")) { if(!AllZone.Combat.isBlocked(this)) return false;}
else if(Property.startsWith("named")) //by name
{ if(!getName().equals(Property.substring(5))) return false;}

View File

@@ -252,6 +252,9 @@ public class CombatUtil {
if (attacker.getKeyword().contains("CARDNAME can't be blocked except by Walls and/or creatures with flying.") &&
!(blocker.isType("Wall") || blocker.getKeyword().contains("Flying"))) return false;
if (attacker.getKeyword().contains("CARDNAME can't be blocked by more than one creature.")
&& AllZone.Combat.getBlockers(attacker).size() > 0) return false;
if (blocker.getCounters(Counters.BRIBERY) > 0 && AllZoneUtil.isCardInPlay("Gwafa Hazid, Profiteer"))
return false;