Fix damage filters

this fix makes damage filters pass correctly when certain damage events
contain more than one damage flag. This is a long standing bug that I
had fixed in the 2007 SDK.