Fix issue #6659 - Choking Vines not blocking properly (#6661)

This commit is contained in:
arcox 2020-06-18 14:19:33 +00:00 committed by GitHub
parent 1724740cc6
commit 3264191bd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,11 +79,14 @@ class ChokingVinesEffect extends OneShotEffect {
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
Targets targets = source.getTargets();
if (controller != null && !targets.isEmpty()) {
for (Target target : targets) {
CombatGroup combatGroup = game.getCombat().findGroup(target.getFirstTarget());
if (combatGroup != null) {
combatGroup.setBlocked(true, game);
for (UUID id : target.getTargets()) {
CombatGroup combatGroup = game.getCombat().findGroup(id);
if (combatGroup != null) {
combatGroup.setBlocked(true, game);
}
}
}
return true;