But Nepal and the Mallas became fragmented upon the death in 1482 of King Yaksha Malla , who divided his lands amongst his heirs .
The country weakened after his death , because his sons weren 't nearly as capable rulers as he was .