text: The trigger event doesn't have to specifically refer to legendary permanents or to artifacts, nor does it have to specifically refer to when something "leaves the battlefield." For example, an ability that triggers "whenever a creature dies" would trigger twice if a legendary creature or an artifact creature dies while Gandalf the White is on the battlefield, as would an ability that triggers "whenever a permanent is put into a graveyard from the battlefield."