mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Converted Psychic Transfer for multiplayer
This commit is contained in:
@@ -5,6 +5,6 @@ PT:5/5
|
||||
K:Vigilance
|
||||
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ TrigLife | TriggerDescription$ When CARDNAME enters the battlefield, each player's life total becomes the highest life total among all players.
|
||||
SVar:TrigLife:AB$SetLife | Cost$ 0 | Defined$ Each | LifeAmount$ X | References$ X
|
||||
SVar:X:Count$HighestLifeTotal
|
||||
SVar:X:PlayerCountPlayers$HighestLifeTotal
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/arbiter_of_knollridge.jpg
|
||||
Oracle:Vigilance\nWhen Arbiter of Knollridge enters the battlefield, each player's life total becomes the highest life total among all players.
|
||||
@@ -7,5 +7,6 @@ K:Horsemanship
|
||||
SVar:X:Count$NamedYouCtrl.Guan Yu, Sainted Warrior
|
||||
SVar:Y:Count$NamedYouCtrl.Zhang Fei, Fierce Warrior
|
||||
SVar:Z:SVar$X/Plus.Y
|
||||
DeckHints:Name$Guan Yu, Sainted Warrior|Zhang Fei, Fierce Warrior
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/liu_bei_lord_of_shu.jpg
|
||||
Oracle:Horsemanship (This creature can't be blocked except by creatures with horsemanship.)\nLiu Bei, Lord of Shu gets +2/+2 as long as you control a permanent named Guan Yu, Sainted Warrior or a permanent named Zhang Fei, Fierce Warrior.
|
||||
@@ -1,9 +1,10 @@
|
||||
Name:Psychic Transfer
|
||||
ManaCost:4 U
|
||||
Types:Sorcery
|
||||
A:SP$ ExchangeLife | Cost$ 4 U | ValidTgts$ Player | ConditionCheckSVar$ Y | ConditionSVarCompare$ LE5 | References$ Y,Z | SpellDescription$ If the difference between your life total and target player's life total is 5 or less, exchange life totals with that player.
|
||||
SVar:Y:Count$HighestLifeTotal/Minus.Z
|
||||
SVar:Z:Count$LowestLifeTotal
|
||||
A:SP$ ExchangeLife | Cost$ 4 U | ValidTgts$ Player | ConditionCheckSVar$ X | ConditionSVarCompare$ LE5 | References$ X,Y,Z | SpellDescription$ If the difference between your life total and target player's life total is 5 or less, exchange life totals with that player.
|
||||
SVar:X:SVar$Y/Abs
|
||||
SVar:Y:Count$YourLifeTotal/Minus.Z
|
||||
SVar:Z:Count$TargetedLifeTotal
|
||||
SVar:RemAIDeck:True
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/psychic_transfer.jpg
|
||||
Oracle:If the difference between your life total and target player's life total is 5 or less, exchange life totals with that player.
|
||||
@@ -1158,12 +1158,6 @@ public class CardFactoryUtil {
|
||||
if (sq[0].contains("YourLandsPlayed")) return doXMath(cc.getNumLandsPlayed(), m, c);
|
||||
if (sq[0].contains("OppLandsPlayed")) return doXMath(ccOpp.getNumLandsPlayed(), m, c);
|
||||
|
||||
|
||||
// Count$HighestLifeTotal
|
||||
if (sq[0].contains("HighestLifeTotal")) {
|
||||
return doXMath(Aggregates.max(cc.getGame().getPlayers(), Player.Accessors.FN_GET_LIFE), m, c);
|
||||
}
|
||||
|
||||
// Count$LowestLifeTotal
|
||||
if (sq[0].contains("LowestLifeTotal")) {
|
||||
final String[] playerType = sq[0].split(" ");
|
||||
@@ -1674,6 +1668,8 @@ public class CardFactoryUtil {
|
||||
}
|
||||
} else if (s[0].contains("Mod")) {
|
||||
return num % secondaryNum;
|
||||
} else if (s[0].contains("Abs")) {
|
||||
return Math.abs(num);
|
||||
} else if (s[0].contains("LimitMax")) {
|
||||
if (num < secondaryNum) {
|
||||
return num;
|
||||
|
||||
Reference in New Issue
Block a user