These 3 ifs can be replaced with 
if (_icewall && _icewall < 4)
    lichking->AI()->DoCast(lichking, SPELL_SUMMON_RISE_WITCH_DOCTOR);