mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
[ONS] Implemented Graxiplon
This commit is contained in:
parent
7f042a6294
commit
0cc1b152c4
3 changed files with 64 additions and 2 deletions
|
|
@ -26,9 +26,12 @@ public enum GreatestSharedCreatureTypeCount implements DynamicValue {
|
|||
|
||||
@Override
|
||||
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
||||
return getValue(sourceAbility.getControllerId(), sourceAbility.getSourceId(), game);
|
||||
}
|
||||
|
||||
public static int getValue(UUID playerId, UUID sourceId, Game game) {
|
||||
List<Permanent> permanentList = game.getBattlefield().getActivePermanents(
|
||||
StaticFilters.FILTER_CONTROLLED_CREATURE,
|
||||
sourceAbility.getControllerId(), sourceAbility.getSourceId(), game
|
||||
StaticFilters.FILTER_CONTROLLED_CREATURE, playerId, sourceId, game
|
||||
);
|
||||
permanentList.removeIf(Objects::isNull);
|
||||
int changelings = permanentList
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue