1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-11 09:11:12 -09:00

* Muldrotha, the Gravetide - Fixed that you could wrongly cast from other graveyards and also not only during your turns.

This commit is contained in:
LevelX2 2018-04-21 23:03:34 +02:00
parent 88b3efe759
commit d2075a8f66

View file

@ -110,6 +110,7 @@ class MuldrothaTheGravetideCastFromGraveyardEffect extends AsThoughEffectImpl {
@Override
public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) {
if (source.getControllerId().equals(affectedControllerId)
&& source.getControllerId().equals(game.getOwnerId(objectId)) // only from your graveyard
&& affectedControllerId.equals(game.getActivePlayerId()) // only during your turns (e.g. prevent flash creatures)
&& Zone.GRAVEYARD.equals(game.getState().getZone(objectId))) {
MuldrothaTheGravetideWatcher watcher = (MuldrothaTheGravetideWatcher) game.getState().getWatchers().get(MuldrothaTheGravetideWatcher.class.getSimpleName());