for (dEntity target: targets) {
if (target.isNPC()) {
if (action.asString().equalsIgnoreCase("true"))
target.getDenizenNPC().getCitizen().addTrait(HealthTrait.class);
else if (action.asString().equalsIgnoreCase("false"))
target.getDenizenNPC().getCitizen().removeTrait(HealthTrait.class);
else if (target.getDenizenNPC().getCitizen().hasTrait(HealthTrait.class))
target.getDenizenNPC().getCitizen().removeTrait(HealthTrait.class);
else
target.getDenizenNPC().getCitizen().addTrait(HealthTrait.class);