mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Converted Callous Giant to script.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
Name:Callous Giant
|
||||
ManaCost:4 R R
|
||||
Types:Creature Giant
|
||||
Text:If a source would deal 3 or less damage to Callous Giant, prevent that damage.
|
||||
Text:
|
||||
PT:4/4
|
||||
S:Mode$ PreventDamage | Target$ Card.Self | MaxDamage$ 3 | Description$ If a source would deal 3 or less damage to Callous Giant, prevent that damage.
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/callous_giant.jpg
|
||||
SetInfo:INV|Rare|http://magiccards.info/scans/en/in/139.jpg
|
||||
|
||||
@@ -5797,10 +5797,6 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
if ((source.isCreature() && AllZoneUtil.isCardInPlay("Well-Laid Plans") && source.sharesColorWith(this))) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (getName().equals("Callous Giant") && restDamage <= 3) {
|
||||
return 0;
|
||||
}
|
||||
} //Creature end
|
||||
|
||||
if (restDamage > 0) {
|
||||
|
||||
@@ -34,6 +34,10 @@ public class StaticAbility_PreventDamage {
|
||||
return restDamage;
|
||||
}
|
||||
|
||||
if(params.containsKey("MaxDamage") && Integer.parseInt(params.get("MaxDamage")) < damage) {
|
||||
return restDamage;
|
||||
}
|
||||
|
||||
// no amount means all
|
||||
if(!params.containsKey("Amount") || params.get("Amount").equals("All")) {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user