Forum:Prime material dragon question

if you have a monster like nightmare horse on the field and prime material dragon. since nightmare horse's effect lets it attack directlly would your opponent gain the lifepoints becuse of prime matrerials effect?