* Misthollow Griffin - Fixed a bug that sometimes a not owning player could play the card from exile.

This commit is contained in:
LevelX2 2017-03-20 23:09:14 +01:00
parent dc7e9318af
commit 696272b328

View file

@ -50,7 +50,7 @@ import mage.game.Game;
public class MisthollowGriffin extends CardImpl {
public MisthollowGriffin(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{U}{U}");
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}{U}");
this.subtype.add("Griffin");
this.power = new MageInt(3);
@ -97,10 +97,11 @@ class MisthollowGriffinPlayEffect extends AsThoughEffectImpl {
public boolean applies(UUID sourceId, Ability source, UUID affectedControllerId, Game game) {
if (sourceId.equals(source.getSourceId())) {
Card card = game.getCard(source.getSourceId());
if (card != null && card.getOwnerId().equals(source.getControllerId()) && game.getState().getZone(source.getSourceId()) == Zone.EXILED) {
if (card != null && card.getOwnerId().equals(affectedControllerId)
&& game.getState().getZone(source.getSourceId()) == Zone.EXILED) {
return true;
}
}
return false;
}
}
}