mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
[MIC] Implemented Curse of Clinging Webs
This commit is contained in:
parent
77845bd1df
commit
b43bb44b27
4 changed files with 102 additions and 43 deletions
|
|
@ -0,0 +1,19 @@
|
|||
package mage.filter.predicate.permanent;
|
||||
|
||||
import mage.filter.predicate.ObjectSourcePlayer;
|
||||
import mage.filter.predicate.ObjectSourcePlayerPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public enum EnchantPlayerControlsPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Permanent> input, Game game) {
|
||||
Permanent permanent = game.getPermanent(input.getSourceId());
|
||||
return permanent != null && input.getObject().isControlledBy(permanent.getAttachedTo());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue