When playing protoss mage and using the warp gate location the discount gets reset for you when the opposing player plays a protoss minion and even gets a mana discount.
in my game for instance i was playing against a protoss rogue that played a 6 cost protoss minion and shadowstepped so it should cost 4 but cost 2 when it was replayed and my minions mana discount was reset.