forked from External/mage
Bloodghast's landfall comes only when he's in the yard, added constructor for such a case where the zone may not be battlefield.
Modifications to Condition:
Javadoc'ed the apply method.
Renamed ConditionalEffect to be ConditionalContinousEffect
22 lines
453 B
Java
22 lines
453 B
Java
package mage.abilities.condition;
|
|
|
|
import mage.abilities.Ability;
|
|
import mage.game.Game;
|
|
|
|
import java.io.Serializable;
|
|
|
|
/**
|
|
* Interface describing condition occurrence.
|
|
*
|
|
* @author nantuko
|
|
*/
|
|
public interface Condition extends Serializable {
|
|
/**
|
|
* Checks the game to see if this condition applies for the given ability.
|
|
*
|
|
* @param game
|
|
* @param source
|
|
* @return
|
|
*/
|
|
boolean apply(Game game, Ability source);
|
|
}
|