mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Added Melira, Sylvok Outcast.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -4651,6 +4651,7 @@ res/cardsfolder/m/megrim.txt svneol=native#text/plain
|
|||||||
res/cardsfolder/m/meishin_the_mind_cage.txt svneol=native#text/plain
|
res/cardsfolder/m/meishin_the_mind_cage.txt svneol=native#text/plain
|
||||||
res/cardsfolder/m/melancholy.txt svneol=native#text/plain
|
res/cardsfolder/m/melancholy.txt svneol=native#text/plain
|
||||||
res/cardsfolder/m/melesse_spirit.txt svneol=native#text/plain
|
res/cardsfolder/m/melesse_spirit.txt svneol=native#text/plain
|
||||||
|
res/cardsfolder/m/melira_sylvok_outcast.txt -text
|
||||||
res/cardsfolder/m/meliras_keepers.txt svneol=native#text/plain
|
res/cardsfolder/m/meliras_keepers.txt svneol=native#text/plain
|
||||||
res/cardsfolder/m/meloku_the_clouded_mirror.txt svneol=native#text/plain
|
res/cardsfolder/m/meloku_the_clouded_mirror.txt svneol=native#text/plain
|
||||||
res/cardsfolder/m/melt_terrain.txt svneol=native#text/plain
|
res/cardsfolder/m/melt_terrain.txt svneol=native#text/plain
|
||||||
|
|||||||
13
res/cardsfolder/m/melira_sylvok_outcast.txt
Normal file
13
res/cardsfolder/m/melira_sylvok_outcast.txt
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Name:Melira, Sylvok Outcast
|
||||||
|
ManaCost:1 G
|
||||||
|
Types:Legendary Creature Human Scout
|
||||||
|
Text:no text
|
||||||
|
PT:2/2
|
||||||
|
S:Mode$ Continuous | Affected$ You | AddKeyword$ You can't get poison counters | Description$ You can't get poison counters.
|
||||||
|
S:Mode$ Continuous | Affected$ Creature.YouCtrl | AddHiddenKeyword$ HIDDEN CARDNAME can't have -1/-1 counters placed on it. | Description$ Creatures you control can't have -1/-1 counters placed on them.
|
||||||
|
S:Mode$ Continuous | Affected$ Creature.YouDontCtrl | RemoveKeyword$ Infect | Description$ Creatures your opponents control lose infect.
|
||||||
|
SVar:Rarity:Rare
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/melira_sylvok_outcast.jpg
|
||||||
|
SetInfo:NPH|Rare|http://magiccards.info/scans/en/nph/115.jpg
|
||||||
|
Oracle:You can't get poison counters.\nCreatures you control can't have -1/-1 counters placed on them.\nCreatures your opponents control lose infect.
|
||||||
|
End
|
||||||
@@ -822,6 +822,9 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
if (this.hasKeyword("CARDNAME can't have counters placed on it.")) {
|
if (this.hasKeyword("CARDNAME can't have counters placed on it.")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (this.hasKeyword("CARDNAME can't have -1/-1 counters placed on it.") && counterName.equals(Counters.M1M1)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (counters.containsKey(counterName)) {
|
if (counters.containsKey(counterName)) {
|
||||||
Integer aux = counters.get(counterName) + n;
|
Integer aux = counters.get(counterName) + n;
|
||||||
counters.put(counterName, aux);
|
counters.put(counterName, aux);
|
||||||
@@ -882,6 +885,9 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
if (this.hasKeyword("CARDNAME can't have counters placed on it.")) {
|
if (this.hasKeyword("CARDNAME can't have counters placed on it.")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (this.hasKeyword("CARDNAME can't have -1/-1 counters placed on it.") && counterName.equals(Counters.M1M1)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
int multiplier = AllZoneUtil.getDoublingSeasonMagnitude(this.getController());
|
int multiplier = AllZoneUtil.getDoublingSeasonMagnitude(this.getController());
|
||||||
if (counters.containsKey(counterName)) {
|
if (counters.containsKey(counterName)) {
|
||||||
Integer aux = counters.get(counterName) + (multiplier * n);
|
Integer aux = counters.get(counterName) + (multiplier * n);
|
||||||
@@ -1013,7 +1019,9 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
if (this.hasKeyword("CARDNAME can't have counters placed on it.")) {
|
if (this.hasKeyword("CARDNAME can't have counters placed on it.")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (this.hasKeyword("CARDNAME can't have -1/-1 counters placed on it.") && counterName.equals(Counters.M1M1)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// sometimes you just need to set the value without being affected by DoublingSeason
|
// sometimes you just need to set the value without being affected by DoublingSeason
|
||||||
if (bSetValue) {
|
if (bSetValue) {
|
||||||
counters.put(counterName, Integer.valueOf(n));
|
counters.put(counterName, Integer.valueOf(n));
|
||||||
|
|||||||
@@ -627,8 +627,10 @@ public abstract class Player extends GameEntity {
|
|||||||
* @param num a int.
|
* @param num a int.
|
||||||
*/
|
*/
|
||||||
public void addPoisonCounters(int num) {
|
public void addPoisonCounters(int num) {
|
||||||
poisonCounters += num;
|
if(!this.hasKeyword("You can't get poison counters")) {
|
||||||
this.updateObservers();
|
poisonCounters += num;
|
||||||
|
this.updateObservers();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ public class AbilityFactory_Counters {
|
|||||||
final Card source = sa.getSourceCard();
|
final Card source = sa.getSourceCard();
|
||||||
CardList list;
|
CardList list;
|
||||||
Card choice = null;
|
Card choice = null;
|
||||||
String type = params.get("CounterType");
|
final String type = params.get("CounterType");
|
||||||
String amountStr = params.get("CounterNum");
|
String amountStr = params.get("CounterNum");
|
||||||
|
|
||||||
Player player = af.isCurse() ? AllZone.getHumanPlayer() : AllZone.getComputerPlayer();
|
Player player = af.isCurse() ? AllZone.getHumanPlayer() : AllZone.getComputerPlayer();
|
||||||
@@ -210,7 +210,8 @@ public class AbilityFactory_Counters {
|
|||||||
list = list.filter(new CardListFilter() {
|
list = list.filter(new CardListFilter() {
|
||||||
public boolean addCard(final Card c) {
|
public boolean addCard(final Card c) {
|
||||||
return CardFactoryUtil.canTarget(source, c)
|
return CardFactoryUtil.canTarget(source, c)
|
||||||
&& !c.hasKeyword("CARDNAME can't have counters placed on it.");
|
&& !c.hasKeyword("CARDNAME can't have counters placed on it.")
|
||||||
|
&& !(c.hasKeyword("CARDNAME can't have -1/-1 counters placed on it.") && type.equals("M1M1"));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1990,7 +1991,8 @@ public class AbilityFactory_Counters {
|
|||||||
|
|
||||||
if (null != source && null != dest) {
|
if (null != source && null != dest) {
|
||||||
if (source.getCounters(cType) >= amount) {
|
if (source.getCounters(cType) >= amount) {
|
||||||
if (!dest.hasKeyword("CARDNAME can't have counters placed on it.")) {
|
if (!dest.hasKeyword("CARDNAME can't have counters placed on it.")
|
||||||
|
&& !(dest.hasKeyword("CARDNAME can't have -1/-1 counters placed on it.") && cType.equals("M1M1"))) {
|
||||||
dest.addCounter(cType, amount);
|
dest.addCounter(cType, amount);
|
||||||
source.subtractCounter(cType, amount);
|
source.subtractCounter(cType, amount);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,6 +52,9 @@ public class CostPutCounter extends CostPart {
|
|||||||
if(source.hasKeyword("CARDNAME can't have counters placed on it.")) {
|
if(source.hasKeyword("CARDNAME can't have counters placed on it.")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (source.hasKeyword("CARDNAME can't have -1/-1 counters placed on it.") && counter.equals(Counters.M1M1)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user