It looks like you forgot the NOT operator when checking if the PlayerPor...

...talEvent was canceled or not. Unless if you intended it to be backwards.