Power trick swaps the attack and defense power of a Pokemon and can be learnt by Pokemon like claydol , medicham and shuckle.
My question is " If a Pokemon uses moves like iron defence or withdraw before using power trick , does that also get converted towards the attack power or does power trick only use the Pokemon's base attack and defense?