Expression for events leading up to a death

I’m getting closer to formulating an expression that calls out people who die early in a fight (<180000 milliseconds in) who are forgetting to use their healthstone or healing potion. Could really use some guidance. Here’s what I have so far, which does not successfully generate a graph:

NOT IN RANGE
WHEN type = "death" AND timestamp < 180000
TO type = "healing" AND name = "Ancient Healing Potion" OR name = "Healthstone"
GROUP BY target
ON source
END

Thanks for any advice