You mean, like, the hero can only activate it at night?
Hmmm...I think there's a deactivate option in the trigger editor. You can try to set it up like
Event: Time of Day = [nightfall time on your map]
Conditions: None
Action: Enable use of [ability]
And then create a counterpart that says when morning comes to deactivate it.