mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
[GNT] implemented Inspired Sphinx
This commit is contained in:
parent
a0e4791ad6
commit
209bccef0c
3 changed files with 93 additions and 1 deletions
|
|
@ -0,0 +1,32 @@
|
|||
package mage.abilities.dynamicvalue.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.game.Game;
|
||||
|
||||
/**
|
||||
* @author JayDi85
|
||||
*/
|
||||
public class OpponentsCount implements DynamicValue {
|
||||
|
||||
@Override
|
||||
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
||||
return game.getOpponents(sourceAbility.getControllerId()).size();
|
||||
}
|
||||
|
||||
@Override
|
||||
public OpponentsCount copy() {
|
||||
return new OpponentsCount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return "number of opponents you have";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "1";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue