added attackEntityFrom hook