mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Added Razorgrass Screen.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -5152,6 +5152,7 @@ res/cardsfolder/razorfield_rhino.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/razorfield_thresher.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/razorfin_hunter.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/razorfoot_griffin.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/razorgrass_screen.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/razorjaw_oni.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/razortooth_rats.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/razorverge_thicket.txt -text svneol=native#text/plain
|
||||
|
||||
10
res/cardsfolder/razorgrass_screen.txt
Normal file
10
res/cardsfolder/razorgrass_screen.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
Name:Razorgrass Screen
|
||||
ManaCost:1
|
||||
Types:Artifact Creature Wall
|
||||
Text:no text
|
||||
PT:2/1
|
||||
K:Defender
|
||||
K:CARDNAME blocks each turn if able.
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/razorgrass_screen.jpg
|
||||
End
|
||||
@@ -212,13 +212,19 @@ public class CombatUtil {
|
||||
public static boolean finishedMandatotyBlocks(Combat combat) {
|
||||
|
||||
CardList blockers = AllZoneUtil.getCreaturesInPlay(AllZone.HumanPlayer);
|
||||
CardList attackers = new CardList(combat.getAttackers());
|
||||
|
||||
//if a creature does not block but should, return false
|
||||
for(Card blocker : blockers) {
|
||||
if(!combat.getAllBlockers().contains(blocker)
|
||||
&& (canBlockAnAttackerWithLure(blocker, combat) ||
|
||||
blocker.getKeyword().contains("CARDNAME blocks each turn if able.")))
|
||||
//lure effects
|
||||
if(!combat.getAllBlockers().contains(blocker) && canBlockAnAttackerWithLure(blocker, combat))
|
||||
return false;
|
||||
|
||||
//"CARDNAME blocks each turn if able."
|
||||
if(!combat.getAllBlockers().contains(blocker) && blocker.getKeyword().contains("CARDNAME blocks each turn if able."))
|
||||
for(Card attacker: attackers)
|
||||
if(canBlock(attacker, blocker, combat))
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user