mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 04:09:54 -08:00
* Fixed a possible endless loop while player left game during damage distribution.
This commit is contained in:
parent
728281524a
commit
ef147bc80c
2 changed files with 2 additions and 2 deletions
|
|
@ -113,7 +113,7 @@ class MasterOfTheWildHuntEffect extends OneShotEffect {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
List<UUID> wolves = new ArrayList<UUID>();
|
||||
List<UUID> wolves = new ArrayList<>();
|
||||
Permanent target = game.getPermanent(source.getFirstTarget());
|
||||
if (target != null && game.getBattlefield().countAll(filter, source.getControllerId(), game) > 0) {
|
||||
for (Permanent permanent: game.getBattlefield().getAllActivePermanents(filter, source.getControllerId(), game)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue