var trigger, item;
if (map.triggers[i]) for ( trigger of map.triggers[i].filter(
- t => (!t.requires_status) ? true : t.requires_status.find(s => s in qstatus)
- ).filter( t => (!t.requires_not_status) ? true : !t.requires_not_status.find(s => s in qstatus) )
+ t => (!t.requires_status) ? true : t.requires_status.find(s => qstatus[s])
+ ).filter( t => (!t.requires_not_status) ? true : !t.requires_not_status.find(s => qstatus[s]) )
) {
// game status modification
if ( trigger.set_status ) for (item of trigger.set_status) {