Merge branch 'lost' into 'master'

Fix life lost triggers

See merge request core-developers/forge!5218
This commit is contained in:
Michael Kamensky
2021-08-14 04:27:08 +00:00
6 changed files with 5 additions and 6 deletions

View File

@@ -208,7 +208,6 @@ public class AiAttackController {
* @return a boolean.
*/
public final boolean isEffectiveAttacker(final Player ai, final Card attacker, final Combat combat) {
// if the attacker will die when attacking don't attack
if ((attacker.getNetToughness() + ComputerUtilCombat.predictToughnessBonusOfAttacker(attacker, null, combat, true)) <= 0) {
return false;

View File

@@ -17,7 +17,7 @@ public class RepeatEffect extends SpellAbilityEffect {
@Override
protected String getStackDescription(final SpellAbility sa) {
return "Repeat something. Somebody should really write a better StackDescription!";
} // end repeatStackDescription()
}
@Override
public void resolve(final SpellAbility sa) {

View File

@@ -3,6 +3,6 @@ ManaCost:3 W
Types:Enchantment
T:Mode$ Phase | Phase$ Upkeep | CheckSVar$ X | SVarCompare$ GE1 | TriggerZones$ Battlefield | Execute$ TrigToken | TriggerDescription$ At the beginning of each upkeep, if you lost life last turn, create a 1/1 white Soldier creature token.
SVar:TrigToken:DB$ Token | TokenAmount$ 1 | TokenScript$ w_1_1_soldier | TokenOwner$ You | LegacyImage$ w 1 1 soldier m15
SVar:X:Count$Controller$LifeLostLastTurn
SVar:X:PlayerCountPropertyYou$LifeLostLastTurn
SVar:Picture:http://www.wizards.com/global/images/magic/general/first_response.jpg
Oracle:At the beginning of each upkeep, if you lost life last turn, create a 1/1 white Soldier creature token.

View File

@@ -6,7 +6,7 @@ T:Mode$ Phase | Phase$ Upkeep | CheckSVar$ X | SVarCompare$ GE1 | TriggerZones$
SVar:TrigPutCounter:DB$ PutCounter | Defined$ Self | CounterType$ P1P1 | CounterNum$ 1
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.Self | Execute$ TrigGainLife | TriggerController$ TriggeredCardController | TriggerDescription$ When CARDNAME dies, you gain life equal to its toughness.
SVar:TrigGainLife:DB$GainLife | Defined$ TriggeredCardController | LifeAmount$ Y
SVar:X:Count$Controller$LifeLostLastTurn
SVar:X:PlayerCountPropertyYou$LifeLostLastTurn
SVar:Y:TriggeredCard$CardToughness
SVar:Picture:http://www.wizards.com/global/images/magic/general/paladin_of_atonement.jpg
Oracle:At the beginning of each upkeep, if you lost life last turn, put a +1/+1 counter on Paladin of Atonement.\nWhen Paladin of Atonement dies, you gain life equal to its toughness.