mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
Merge fix
This commit is contained in:
parent
6151ec3889
commit
1e10d070ae
1 changed files with 10 additions and 7 deletions
|
|
@ -35,13 +35,16 @@ public class RulesFormatTest {
|
|||
possibleObjectNames.add("land");
|
||||
possibleObjectNames.add("planeswalker");
|
||||
|
||||
card.getAbilities().forEach(ability -> {
|
||||
possibleObjectNames.forEach(name -> {
|
||||
// simulate replacement code from GainAbilityAttachedEffect::getText
|
||||
String sourceName = "This " + name;
|
||||
ability.getRule(sourceName);
|
||||
});
|
||||
});
|
||||
CardUtil.getObjectPartsAsObjects(card)
|
||||
.forEach(part -> {
|
||||
part.getAbilities().forEach(ability -> {
|
||||
possibleObjectNames.forEach(name -> {
|
||||
// simulate replacement code from GainAbilityAttachedEffect::getText
|
||||
String sourceName = "This " + name;
|
||||
ability.getRule(sourceName);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue