Two different operations occur:
IndicativeAfter lanReason
يَرْمِيلَنْ يَرْمِيَsubjunctive final vowel
يَرْمِيَانِلَنْ يَرْمِيَاdual nūn removed
يَرْمُونَلَنْ يَرْمُواplural nūn removed
تَرْمِينَلَنْ تَرْمِيfeminine-address nūn removed
يُرْمَىلَنْ يُرْمَىestimated vowel on alif
The five indicative forms lose their final nūn. The active weak-final singular instead takes the appropriate final subjunctive vowel. Treat these as separate rules.