mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
* Misthollow Griffin - Fixed a bug that sometimes a not owning player could play the card from exile.
This commit is contained in:
parent
dc7e9318af
commit
696272b328
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue