Merge branch 'fixes' into 'master'

Fix Minimus Containment

See merge request core-developers/forge!5182
This commit is contained in:
Michael Kamensky
2021-08-05 15:59:06 +00:00
4 changed files with 5 additions and 7 deletions

View File

@@ -370,8 +370,7 @@ public class CountersMoveAi extends SpellAbilityAi {
Card lki = CardUtil.getLKICopy(src);
if (cType == null) {
lki.clearCounters();
}
else {
} else {
lki.setCounters(cType, 0);
}
// go for opponent when higher value implies debuff

View File

@@ -3450,7 +3450,6 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
runParams.put(AbilityKey.AttachSource, this);
runParams.put(AbilityKey.AttachTarget, entity);
getController().getGame().getTriggerHandler().runTrigger(TriggerType.Attached, runParams, false);
}
public final void unattachFromEntity(final GameEntity entity) {

View File

@@ -301,7 +301,7 @@ public class Combat {
return ab;
}
}
CombatLki lki = lkiCache.get(c).getCombatLKI();
CombatLki lki = lkiCache.get(c) != null ? lkiCache.get(c).getCombatLKI() : null;
return lki == null || !lki.isAttacker ? null : lki.getFirstBand();
}
@@ -911,7 +911,7 @@ public class Combat {
return false;
}
CombatLki lki = lkiCache.get(blocker).getCombatLKI();
CombatLki lki = lkiCache.get(blocker) != null ? lkiCache.get(blocker).getCombatLKI() : null;
return null != lki && !lki.isAttacker; // was blocking something anyway
}
@@ -926,7 +926,7 @@ public class Combat {
return false;
}
CombatLki lki = lkiCache.get(blocker).getCombatLKI();
CombatLki lki = lkiCache.get(blocker) != null ? lkiCache.get(blocker).getCombatLKI() : null;
return null != lki && !lki.isAttacker && lki.relatedBands.contains(ab); // was blocking that very band
}

View File

@@ -3,6 +3,6 @@ ManaCost:2 W
Types:Enchantment Aura
K:Enchant nonland permanent
A:SP$ Attach | ValidTgts$ Permanent.nonLand | TgtPrompt$ Select target nonland permanent | AILogic$ Curse
S:Mode$ Continuous | Affected$ Permanent.EnchantedBy | AddType$ Artifact & Treasure | RemoveCardTypes$ True | AddAbility$ TreasureSac | RemoveAllAbilities$ True | Description$ Enchanted permanent is a Treasure artifact with "{T}, Sacrifice this artifact: Add one mana of any color," and it loses all other abilities. (If it was a creature, it's no longer a creature.)
S:Mode$ Continuous | Affected$ Permanent.EnchantedBy | AddType$ Artifact & Treasure | RemoveCardTypes$ True | RemoveArtifactTypes$ True | AddAbility$ TreasureSac | RemoveAllAbilities$ True | Description$ Enchanted permanent is a Treasure artifact with "{T}, Sacrifice this artifact: Add one mana of any color," and it loses all other abilities. (If it was a creature, it's no longer a creature.)
SVar:TreasureSac:AB$ Mana | Cost$ T Sac<1/CARDNAME> | Produced$ Any | SpellDescription$ Add one mana of any color.
Oracle:Enchant nonland permanent\nEnchanted permanent is a Treasure artifact with "{T}, Sacrifice this artifact: Add one mana of any color," and it loses all other abilities. (If it was a creature, it's no longer a creature.)