mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
parent
1724740cc6
commit
3264191bd5
1 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue