If another effect (or effects) modifies how much damage a Wizard you control would deal—by preventing some of it, for example—the player being dealt damage or the controller of the permanent being dealt damage chooses the order in which any such effects (including Trance Kuja's) apply. If all of the damage is prevented, Trance Kuja's effect no longer applies.