Special
    name = "INDEPENDENT_COLONY_DEFENSE_SPECIAL"
    description = "INDEPENDENT_COLONY_DEFENSE_SPECIAL_DESC"
    spawnrate = 0.0
    effectsgroups = [
        // Remove the special if the population died out or the planet is invaded
        EffectsGroup
            scope = Source
            activation = Or [
                Not Unowned
                Population high = 0
            ]
            effects = RemoveSpecial name = ThisSpecial

        EffectsGroup
            scope = Source
            activation = And [
                Unowned
                Species
            ]
            priority = [[TARGET_OVERRIDE_PRIORITY]]
            effects = [
                SetMaxDefense value = max(Value, SpecialCapacity name = ThisSpecial object = Source.ID)
            ]
    ]
    graphic = "icons/meter/defense.png"

#include "/scripting/macros/priorities.macros"
