I found a small typo that was stopping the SecondaryAttackKey from using pots.
Trigger=:Trigger+TriggerSecondaryAttack it should be Trigger:=Trigger+TriggerSecondaryAttack . The = and : are backwards. The error is in both files without quit and with.