unit:isMagicImmune() implemented with lua