implement [MH3] Volatile Stormdrake ; provide source Ability to canBeTargetedBy and HexproofBaseAbility::checkObject

This commit is contained in:
Susucre 2024-06-06 16:52:53 +02:00
parent 8ec4ffd9de
commit 2d625f0364
49 changed files with 399 additions and 171 deletions

View file

@ -1,6 +1,7 @@
package mage.abilities.keyword;
import mage.MageObject;
import mage.abilities.Ability;
import mage.game.Game;
import java.io.ObjectStreamException;
@ -32,8 +33,8 @@ public class HexproofFromRedAbility extends HexproofBaseAbility {
}
@Override
public boolean checkObject(MageObject source, Game game) {
return source.getColor(game).isRed();
public boolean checkObject(MageObject sourceObject, Ability source, Game game) {
return sourceObject.getColor(game).isRed();
}
@Override