While this was going on, David ordered a frontal attack on the enemy vanguard with his crusader knights which not only devastated the enemy's forward lines, but also entangled the Seljuq archers in close combat, effectively taking out a crucial component of Ilghazi's force. This trick resulted in chaos and panic among the Muslims. The Georgians then began to quickly advance on the flanks from the western side of the mountain in full formation. Ilghazi and his son-in-law both survived the attack on the vanguard, but were severely injured during the fight and withdrew from the battlefield, leaving the Seljuq army virtually leaderless.