mirror of
https://github.com/correl/mage.git
synced 2025-04-07 17:00:08 -09:00
- replaced getAbilities().get(0) with getSpellAbility()
This commit is contained in:
parent
ac267831da
commit
cd5759de12
1 changed files with 7 additions and 7 deletions
|
@ -129,8 +129,8 @@ class JadziOracleOfArcaviosEffect extends OneShotEffect {
|
||||||
SplitCardHalf leftHalfCard = ((SplitCard) card).getLeftHalfCard();
|
SplitCardHalf leftHalfCard = ((SplitCard) card).getLeftHalfCard();
|
||||||
SplitCardHalf rightHalfCard = ((SplitCard) card).getRightHalfCard();
|
SplitCardHalf rightHalfCard = ((SplitCard) card).getRightHalfCard();
|
||||||
// get additional cost if any
|
// get additional cost if any
|
||||||
Costs additionalCostsLeft = leftHalfCard.getAbilities().get(0).getCosts();
|
Costs additionalCostsLeft = leftHalfCard.getSpellAbility().getCosts();
|
||||||
Costs additionalCostsRight = rightHalfCard.getAbilities().get(0).getCosts();
|
Costs additionalCostsRight = rightHalfCard.getSpellAbility().getCosts();
|
||||||
// set alternative cost and any additional cost
|
// set alternative cost and any additional cost
|
||||||
controller.setCastSourceIdWithAlternateMana(leftHalfCard.getId(), new ManaCostsImpl<>("{1}"), additionalCostsLeft);
|
controller.setCastSourceIdWithAlternateMana(leftHalfCard.getId(), new ManaCostsImpl<>("{1}"), additionalCostsLeft);
|
||||||
controller.setCastSourceIdWithAlternateMana(rightHalfCard.getId(), new ManaCostsImpl<>("{1}"), additionalCostsRight);
|
controller.setCastSourceIdWithAlternateMana(rightHalfCard.getId(), new ManaCostsImpl<>("{1}"), additionalCostsRight);
|
||||||
|
@ -146,13 +146,13 @@ class JadziOracleOfArcaviosEffect extends OneShotEffect {
|
||||||
// some MDFC cards are lands. IE: sea gate restoration
|
// some MDFC cards are lands. IE: sea gate restoration
|
||||||
if (!leftHalfCard.isLand(game)) {
|
if (!leftHalfCard.isLand(game)) {
|
||||||
// get additional cost if any
|
// get additional cost if any
|
||||||
Costs additionalCostsMDFCLeft = leftHalfCard.getAbilities().get(0).getCosts();
|
Costs additionalCostsMDFCLeft = leftHalfCard.getSpellAbility().getCosts();
|
||||||
// set alternative cost and any additional cost
|
// set alternative cost and any additional cost
|
||||||
controller.setCastSourceIdWithAlternateMana(leftHalfCard.getId(), new ManaCostsImpl<>("{1}"), additionalCostsMDFCLeft);
|
controller.setCastSourceIdWithAlternateMana(leftHalfCard.getId(), new ManaCostsImpl<>("{1}"), additionalCostsMDFCLeft);
|
||||||
}
|
}
|
||||||
if (!rightHalfCard.isLand(game)) {
|
if (!rightHalfCard.isLand(game)) {
|
||||||
// get additional cost if any
|
// get additional cost if any
|
||||||
Costs additionalCostsMDFCRight = rightHalfCard.getAbilities().get(0).getCosts();
|
Costs additionalCostsMDFCRight = rightHalfCard.getSpellAbility().getCosts();
|
||||||
// set alternative cost and any additional cost
|
// set alternative cost and any additional cost
|
||||||
controller.setCastSourceIdWithAlternateMana(rightHalfCard.getId(), new ManaCostsImpl<>("{1}"), additionalCostsMDFCRight);
|
controller.setCastSourceIdWithAlternateMana(rightHalfCard.getId(), new ManaCostsImpl<>("{1}"), additionalCostsMDFCRight);
|
||||||
}
|
}
|
||||||
|
@ -166,8 +166,8 @@ class JadziOracleOfArcaviosEffect extends OneShotEffect {
|
||||||
Card creatureCard = card.getMainCard();
|
Card creatureCard = card.getMainCard();
|
||||||
Card spellCard = ((AdventureCard) card).getSpellCard();
|
Card spellCard = ((AdventureCard) card).getSpellCard();
|
||||||
// get additional cost if any
|
// get additional cost if any
|
||||||
Costs additionalCostsCreature = creatureCard.getAbilities().get(0).getCosts();
|
Costs additionalCostsCreature = creatureCard.getSpellAbility().getCosts();
|
||||||
Costs additionalCostsSpellCard = spellCard.getAbilities().get(0).getCosts();
|
Costs additionalCostsSpellCard = spellCard.getSpellAbility().getCosts();
|
||||||
// set alternative cost and any additional cost
|
// set alternative cost and any additional cost
|
||||||
controller.setCastSourceIdWithAlternateMana(creatureCard.getId(), new ManaCostsImpl<>("{1}"), additionalCostsCreature);
|
controller.setCastSourceIdWithAlternateMana(creatureCard.getId(), new ManaCostsImpl<>("{1}"), additionalCostsCreature);
|
||||||
controller.setCastSourceIdWithAlternateMana(spellCard.getId(), new ManaCostsImpl<>("{1}"), additionalCostsSpellCard);
|
controller.setCastSourceIdWithAlternateMana(spellCard.getId(), new ManaCostsImpl<>("{1}"), additionalCostsSpellCard);
|
||||||
|
@ -181,7 +181,7 @@ class JadziOracleOfArcaviosEffect extends OneShotEffect {
|
||||||
|| !(card instanceof ModalDoubleFacesCard)
|
|| !(card instanceof ModalDoubleFacesCard)
|
||||||
|| !(card instanceof AdventureCard)) {
|
|| !(card instanceof AdventureCard)) {
|
||||||
// get additional cost if any
|
// get additional cost if any
|
||||||
Costs additionalCostsNormalCard = card.getAbilities().get(0).getCosts();
|
Costs additionalCostsNormalCard = card.getSpellAbility().getCosts();
|
||||||
controller.setCastSourceIdWithAlternateMana(card.getMainCard().getId(), new ManaCostsImpl<>("{1}"), additionalCostsNormalCard);
|
controller.setCastSourceIdWithAlternateMana(card.getMainCard().getId(), new ManaCostsImpl<>("{1}"), additionalCostsNormalCard);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue