fix the counter's bug in attackPagan