This is a targeted ability. The player will not be allowed to use this ability if they are not targeting an Undead type monster.
You CAN, however, use it on an Undead type monster while engaged with a non-Undead type by using it in a macro with the <stnpc> target command.(/ja "Sepulcher" <stnpc>)