mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 13:19:18 -08:00
refactor: improved usage of getOpponents to ignore leaved players in one short effects
This commit is contained in:
parent
81f802febc
commit
58fbfdd529
16 changed files with 17 additions and 17 deletions
|
|
@ -43,7 +43,7 @@ public class LoseLifeOpponentsYouGainLifeLostEffect extends OneShotEffect {
|
|||
return true;
|
||||
}
|
||||
int totalLifeLost = game
|
||||
.getOpponents(source.getControllerId())
|
||||
.getOpponents(source.getControllerId(), true)
|
||||
.stream()
|
||||
.map(game::getPlayer)
|
||||
.filter(Objects::nonNull)
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ class AshiokNightmareMuseTokenEffect extends OneShotEffect {
|
|||
return false;
|
||||
}
|
||||
Set<Card> cards = game
|
||||
.getOpponents(source.getControllerId())
|
||||
.getOpponents(source.getControllerId(), true)
|
||||
.stream()
|
||||
.map(game::getPlayer)
|
||||
.filter(Objects::nonNull)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue