Fixed a NPE related to player's last damage cause and changed associated event priority