text: If the equipped creature is the one that attacks, it gets +2/+0 until end of turn, not Chainflail Centipede. This is true even if Chainflail Centipede is no longer attached to it by the time the ability resolves.