Scripts/Krikthir the Gatewatcher: converted to EventMap and small optimization