mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
* Fixed a possible exception of ComboAttack.
This commit is contained in:
parent
b17858d910
commit
802bc7f1c7
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.cards.c;
|
||||
|
||||
import java.util.UUID;
|
||||
|
@ -56,6 +55,9 @@ class ComboAttackEffect extends OneShotEffect {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
if (source.getTargets().size() < 2) {
|
||||
return false;
|
||||
}
|
||||
Permanent permanent1 = game.getPermanent(source.getTargets().get(0).getTargets().get(0));
|
||||
Permanent permanent2 = game.getPermanent(source.getTargets().get(0).getTargets().get(1));
|
||||
Permanent permanent3 = game.getPermanent(source.getTargets().get(1).getTargets().get(0));
|
||||
|
|
Loading…
Reference in a new issue