I have a certain weapon in my mod that has the ability to pass through shields. Unlike the phase missile, this weapon is acquired near the end of the research tree and is just a modification of another weapon type that is available from the game's beginning. Further still, it's only available to a select few ship types with access to the original weapon. For example, ships A, B, C, E, and G all have access to weapon 1. Only ships B and G will gain access to the modified warhead that penetrates shields, however.
As I currently have set up, I would ideally like it to be a at-will ability so the ships can apply to shield-penetrating warheads when needed and then revert to the stock torpedoes the rest of the time. My issue is that I can't get the modified weapon to penetrate an enemy ship's shields. I've tried many different variations that involve applying the "ChancetoIngoreShieldsAsDamageTarget" as the Defeat Shields ability uses in combination with "ApplyBuffToTargetOnWeaponFired". Obviously, I didn't have any luck with that attempt.
My current strategy switches the buff to my ship using "ChanceToIgnoreShieldsAsDamageDealer". I've tried several different finishing conditions to make sure the buff is active when needed, I've tried adjusting the percentage on the entity modifier, and I've doubled checked the ship entity file to make sure everything is in order. I'm hoping there's just a tiny detail that I missed somewhere, but I'd really appreciate any kind of help.
Here are my current entity files. They are still in a testing stage, so include references to stock icons and such.
TXT
entityType "Ability"
buffInstantActionType "ApplyOrRemoveBuffToSelf"
instantActionTriggerType "AlwaysPerform"
buffType "BuffTransphasicWarhead"
effectInfo
effectAttachInfo
attachType "Invalid"
smallEffectName ""
largeEffectName ""
soundID ""
toggleStateOnNameStringID ""
toggleStateOnDescStringID ""
needsToFaceTarget FALSE
canCollideWithTarget TRUE
moveThruTarget FALSE
isUltimateAbility FALSE
maxNumLevels 3
levelSourceType "Intrinsic"
minExperienceLevelRequired
Level:0 0.000000
Level:1 2.000000
Level:2 4.000000
aiUseTime "OnlyInCombat"
aiUseTargetCondition "Any"
isAutoCastAvailable TRUE
isAutoCastOnByDefault FALSE
pickRandomPlanetToExploreForAutoCastTarget FALSE
ignoreNonCombatShipsForAutoCastTarget TRUE
onlyAutoCastWhenDamageTakenExceedsPerc 0.000000
useCostType "AntiMatter"
antiMatterCost
Level:0 25.000000
Level:1 25.000000
Level:2 25.000000
cooldownTime
Level:0 0.000000
Level:1 0.000000
Level:2 0.000000
orderAcknowledgementType "ONGENERALORDERISSUED"
researchPrerequisites
NumResearchPrerequisites 0
nameStringID "IDS_ABILITY_NANONANODISRUPTOR_NAME"
descStringID "IDS_ABILITY_NANONANODISRUPTOR_DESCRIPTION"
hudIcon "HUDICON_ABILITY_NANODISRUPTOR"
smallHudIcon "HUDICON_ABILITY_NANODISRUPTOR"
infoCardIcon ""
TXT
entityType "Buff"
onReapplyDuplicateType "PrioritizeNewBuffs"
buffStackingLimitType "ForAllPlayers"
stackingLimit 1
allowFirstSpawnerToStack
buffExclusivityForAIType "ExclusiveForAllPlayers"
isInterruptable FALSE
isChannelling FALSE
numInstantActions 1
instantAction
buffInstantActionType "ApplyBuffToSelf"
instantActionTriggerType "OnWeaponFired"
numWeaponClasses 1
weaponClassForWeaponPassive "PHASEMISSILE"
passiveWeaponEffectChance
Level:0 1.000000
Level:1 1.000000
Level:2 1.000000
buffType "BuffTransphasicShift"
effectInfo
effectAttachInfo
attachType "Invalid"
smallEffectName ""
largeEffectName ""
soundID ""
numPeriodicActions 0
numOverTimeActions 0
numEntityModifiers 0
numEntityBoolModifiers 0
numFinishConditions 0
TXT
entityType "Buff"
onReapplyDuplicateType "PrioritizeNewBuffs"
buffStackingLimitType "ForAllPlayers"
stackingLimit 1
allowFirstSpawnerToStack FALSE
buffExclusivityForAIType "ExclusiveForAllPlayers"
isInterruptable FALSE
isChannelling FALSE
numInstantActions 0
numPeriodicActions 0
numOverTimeActions 0
numEntityModifiers 1
entityModifier
buffEntityModifierType "ChanceToIgnoreShieldsAsDamageDealer"
value
Level:0 1.000000
Level:1 1.000000
Level:2 1.000000
numEntityBoolModifiers 0
numFinishConditions 1
finishCondition
finishConditionType "LastSpawnerNoLongerHasBuff"
buffTypeToQuery "BuffTransphasicWarhead"