fix the counter bug in attackPagan