Forum:Clear vice dragon help

Im a bit confused with Clear Vice Dragon's attack effect.When does its attack effect apply? Is it only when u attack or is it when it just attacks it gains the bonus.