Deleting the ArcheryTotal modifier, as it is a duplicate of the superior ModifyArcheryTotal

This commit is contained in:
Christian 'ketura' McCarty
2024-05-29 20:53:59 -05:00
parent 78cd84e775
commit be82005de9
5 changed files with 3 additions and 34 deletions

View File

@@ -615,7 +615,7 @@
effects: {
type: modifier
modifier: {
type: archeryTotal
type: ModifyArcheryTotal
requires: {
type: canSpot
filter: another,culture(moria),archer

View File

@@ -300,7 +300,7 @@
{
type: modifier
modifier: {
type: archeryTotal
type: ModifyArcheryTotal
side: shadow
amount: -1
}

View File

@@ -161,7 +161,7 @@
effects: {
type: modifier
modifier: {
type: archeryTotal
type: ModifyArcheryTotal
side: shadow
requires: {
type: controlsSite

View File

@@ -1,30 +0,0 @@
package com.gempukku.lotro.cards.build.field.effect.modifier;
import com.gempukku.lotro.cards.build.*;
import com.gempukku.lotro.cards.build.field.FieldUtils;
import com.gempukku.lotro.common.Side;
import com.gempukku.lotro.logic.modifiers.ArcheryTotalModifier;
import com.gempukku.lotro.logic.modifiers.Modifier;
import org.json.simple.JSONObject;
public class ArcheryTotal implements ModifierSourceProducer {
@Override
public ModifierSource getModifierSource(JSONObject object, CardGenerationEnvironment environment) throws InvalidCardDefinitionException {
FieldUtils.validateAllowedFields(object, "amount", "requires", "side");
final JSONObject[] conditionArray = FieldUtils.getObjectArray(object.get("requires"), "requires");
final int amount = FieldUtils.getInteger(object.get("amount"), "amount");
final Side side = FieldUtils.getEnum(Side.class, object.get("side"), "side");
final Requirement[] requirements = environment.getRequirementFactory().getRequirements(conditionArray, environment);
return new ModifierSource() {
@Override
public Modifier getModifier(ActionContext actionContext) {
return new ArcheryTotalModifier(actionContext.getSource(), side,
RequirementCondition.createCondition(requirements, actionContext),
amount);
}
};
}
}

View File

@@ -24,7 +24,6 @@ public class ModifierSourceFactory {
modifierProducers.put("allycanparticipateinarcheryfire", new AllyCanParticipateInArcheryFire());
modifierProducers.put("allycanparticipateinskirmishes", new AllyCanParticipateInSkirmishes());
modifierProducers.put("allymaynotparticipateinarcheryfireorskirmishes", new AllyMayNotParticipateInArcheryFireOrSkirmishes());
modifierProducers.put("archerytotal", new ArcheryTotal());
modifierProducers.put("cancelkeywordbonus", new CancelKeywordBonus());
modifierProducers.put("cancelstrengthbonus", new CancelStrengthBonus());
modifierProducers.put("canplaystackedcards", new CanPlayStackedCards());