Suppose a 15th level 3.5 Warlock fires an eldritch blast at a buffed opponent. The warlock appliles greatreach blast to the eldritch blast and then applies the transform magic (greater dispel magic) invocation to the blast. My question is what resolves first...the eldritch blast damage or the greater dispel magic? I haven't been able to find an answer...perhaps the DM just needs to roll a die to determine the order.