fix voracious Dragon, Goblins were never counted properly

This commit is contained in:
Ingmar Goudt 2018-09-24 21:24:41 +02:00
parent ae33adb262
commit da287bb4ed

View file

@ -70,7 +70,7 @@ class TwiceDevouredGoblins implements DynamicValue {
DevourEffect devourEffect = (DevourEffect) abilityEffect;
int amountGoblins = 0;
for (List<String> subtypesItem :devourEffect.getSubtypes(game, sourcePermanent.getId())) {
if (subtypesItem.contains(SubType.GOBLIN)) {
if (subtypesItem.contains(SubType.GOBLIN.toString())) {
++amountGoblins;
}
}