Anyone care to figure out what I'm doing wrong in my attempt to create a detonating mine that damages anything within range? Haven't tried it against an enemy (simply because the thing's stationary), but it doesn't work against friendlies which is a key part of it. It deploys fine.
Ability file:
TXT
entityType "Ability"
buffInstantActionType "ApplyBuffToTargetsInRadius"
instantActionTriggerType "AlwaysPerform"
buffType "BuffMineDamage"
targetFilter
numOwnerships 0
numObjects 4
object "CapitalShip"
object "Frigate"
object "PlanetModule"
object "Fighter"
numConstraints 0
range
Level:0 200.000000
Level:1 300.000000
Level:2 400.000000
maxTargetCount
Level:0 -1.000000
Level:1 -1.000000
Level:2 -1.000000
effectInfo
effectAttachInfo
attachType "Center"
smallEffectName "CapitalAbility_NanoHullRepairActivate"
largeEffectName "CapitalAbility_NanoHullRepairActivate"
soundID ""
needsToFaceTarget FALSE
isUltimateAbility FALSE
maxNumLevels 3
levelSourceType "Intrinsic"
minExperienceLevelRequired
Level:0 0.000000
Level:1 2.000000
Level:2 4.000000
aiUseTime "OnlyInCombat"
isAutoCastAvailable TRUE
isAutoCastOnByDefault TRUE
pickRandomPlanetToExploreForAutoCastTarget FALSE
onlyAutoCastWhenDamageTakenExceedsPerc 0
isPassive FALSE
antiMatterCost
Level:0 0.000000
Level:1 0.000000
Level:2 0.000000
cooldownTime
Level:0 12.000000
Level:1 12.000000
Level:2 12.000000
researchPrerequisites
NumResearchPrerequisites 0
nameStringID "IDS_ABILITY_NANOHULLREPAIR_NAME"
descStringID "IDS_ABILITY_NANOHULLREPAIR_DESCRIPTION"
IconBrushID "HUDICON_ABILITY_NANOHULLREPAIR"
SmallIconBrushID "HUDICON_ABILITY_NANOHULLREPAIR"
Buff file:
TXT
entityType "Buff"
onReapplyDuplicateType "ReplaceWithNewBuff"
buffExclusivityForAIType "ExclusiveForAllPlayers"
isInterruptable FALSE
isChannelling FALSE
numInstantActions 1
instantAction
buffInstantActionType "DoDamage"
instantActionTriggerType "OnDelay"
delayTime 0.000000
damage
Level:0 1000.000000
Level:1 0.000000
Level:2 0.000000
damageAffectType "AFFECTS_SHIELDS_AND_HULL"
damageType "ENERGY"
isDamageShared TRUE
numPeriodicActions 0
numOverTimeActions 0
numEntityModifiers 0
numEntityBoolModifiers 0
numFinishConditions 1
finishCondition
finishConditionType "AllOnDelayInstantActionsDone"