Forum:Prime material dragon vs Secret Guards of the Ice Barrier

Which effect would take place if i have a prime material dragon and lord of d on my side of the field and my opponent have Secret Guards of the Ice Barrier and a gungnir dragon of the ice barrier on his side of the field. Which effect would win that battle of card effects?