If you want to kill heavy armored units with pilums, position your troops on the right flank of them and throw the pilums from there, because they won't get the shield bonuses. Right?