As a Necromancer you can use Mystic Crystal Lore while in combat as long as your pet hasn't made a melee strike. A combat flag should trigger if the Necromancer pet has damaged something via spell/melee/damage shield preventing the use of Mystic Crystal Lore. A combat flag should not trigger if the Necromancer pet has simply been attacked.