Fixed Bug #7492

Special Thanks to Poison, Takkun.
http://hercules.ws/board/tracker/issue-7492-checkidle-on-attack/

Signed-off-by: shennetsind <ind@henn.et>