Fix converting of event phases.

Thanks to https://github.com/TrinityCore/EventAI-to-SmartAI/commit/dfc6ff1623481f6470df99ec9dfafd736663164b#commitcomment-3821329