Card: Eching Ooze (Hearthstone) http://hearthstone.gamepedia.com/Echoing_Ooze
Ability: Battlecry: Summon an exact copy of this minion at the end of the turn.
This might not seem like a difficult card to code on the surface, but the way they implemented it demonstrates some complexity.
If you modify this card during the turn it is played, those buffs are applied to the copy that is created at the end of the turn. This includes buffs provided by other minions such as Divine Shield or +1/+1. However, if a buff is appiled that says something like "Add +2 attack until end of turn", even though the copy that is made at the end of the turn might be a 3/2, the buff is still removed from the copy at the end of the turn.
I was not sure how this would behave until I played with the card, and they clearly had to make a choice about how to do it. I think that based on the wording of the card, the buff might have stayed on the minion after the end of the turn, regardless of what it said on the card that casted the buff. I guess it depends on how you define "Exact Copy", and also on how they impemented those buffs themselves.