Well there is the water flag... it is called f0 and it becomes set when the ego touches a priority of 3 and unsets when the stop touching the priority of of 3.
All you do is this:
if (isset(f0)) {
// put burnt/death/whatever code here
}Then paint the priority around the fire to be priority 3. Simple as that.
